/* =========================================================
   RCON Hub — mock marketing site
   Colors follow the hub app's own theme (frontend/src)
   ========================================================= */
:root {
  --bg: #0b1017;
  --bg-2: #0f1620;
  --panel: #121a26;
  --panel-2: #172131;
  --line: #223047;
  --line-soft: #1a2536;
  --fg: #e7ecf3;
  --dim: #a8b3c4;
  --faint: #8390a5;
  --accent: #f5a524;
  --accent-2: #ffcb6b;
  --accent-fg: #1a1204;
  --cyan: #2dd9da;
  --good: #34d399;
  --bad: #f87171;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 30px 80px -20px rgba(0, 0, 0, .65), 0 0 0 1px rgba(255, 255, 255, .04);
  --font: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 124px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
code, kbd, pre { font-family: var(--mono); }
code { font-size: .88em; padding: .1em .4em; border-radius: 6px; background: rgba(255,255,255,.06); color: var(--accent-2); }
kbd { font-size: .8em; padding: .15em .45em; border-radius: 6px; border: 1px solid var(--line); border-bottom-width: 2px; background: var(--panel-2); }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--accent-fg); }

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }

/* ---------- background ---------- */
#bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; }
.noise {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(245,165,36,.16), transparent 60%),
    radial-gradient(800px 600px at -10% 30%, rgba(45,217,218,.10), transparent 60%),
    radial-gradient(1000px 700px at 50% 120%, rgba(245,165,36,.08), transparent 60%);
}

/* ---------- buttons ---------- */
.btn {
  --h: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  height: var(--h); padding: 0 1.2rem; border-radius: 12px; border: 1px solid transparent;
  font-weight: 600; letter-spacing: .01em; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, border-color .2s;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn--sm { --h: 38px; padding: 0 1rem; font-size: .92rem; }
.btn--lg { --h: 54px; padding: 0 1.5rem; font-size: 1.02rem; border-radius: 14px; }
.btn--primary {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: var(--accent-fg);
  box-shadow: 0 10px 30px -10px rgba(245,165,36,.7), inset 0 1px 0 rgba(255,255,255,.4);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(245,165,36,.85), inset 0 1px 0 rgba(255,255,255,.4); }
.btn--ghost { background: rgba(255,255,255,.03); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--accent); background: rgba(245,165,36,.06); transform: translateY(-2px); }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(11,16,23,.72); backdrop-filter: blur(14px) saturate(1.4); border-color: var(--line-soft); }
.nav__inner { display: flex; align-items: center; gap: 1rem; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; }
.brand__mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--line); box-shadow: 0 0 24px -6px rgba(245,165,36,.6); }
.brand__mark svg { width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.brand__mark svg .c { stroke: var(--cyan); }
.brand__name b { color: var(--accent); font-weight: 700; margin-left: 1px; }
.nav__links { display: flex; gap: .25rem; margin-left: auto; }
.nav__links a { padding: .45rem .6rem; border-radius: 10px; color: var(--dim); font-size: .92rem; white-space: nowrap; transition: color .2s, background .2s; }
.nav__links a:hover, .nav__links a.is-active { color: var(--fg); background: rgba(255,255,255,.05); }
.nav__burger { display: none; margin-left: auto; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.nav__burger span { width: 18px; height: 2px; background: var(--fg); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { padding: 176px 0 40px; position: relative; }
.hero__grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: 56px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: .55rem; padding: .35rem .85rem .35rem .6rem; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(18,26,38,.7); color: var(--dim); font-size: .88rem; transition: border-color .2s, color .2s;
}
.pill:hover { border-color: var(--accent); color: var(--fg); }
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 4px rgba(52,211,153,.18); animation: pulse 2s infinite; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -.025em; margin: 0; }
h1 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); font-weight: 700; margin: 1.25rem 0 1.25rem; }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -.01em; }
.grad {
  background: linear-gradient(100deg, var(--accent-2) 0%, var(--accent) 40%, var(--cyan) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 8s ease-in-out infinite alternate;
}
.lead { font-size: 1.15rem; color: var(--dim); max-width: 34em; margin: 0 0 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero__meta { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; list-style: none; padding: 0; margin: 1.8rem 0 0; color: var(--faint); font-size: .92rem; }
.tick { color: var(--good); margin-right: .35rem; font-weight: 700; }

/* window mock */
.hero__visual { position: relative; perspective: 1400px; }
.window, .term {
  background: linear-gradient(180deg, rgba(23,33,49,.92), rgba(15,22,32,.96));
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
}
.tilt { transform: rotateY(-8deg) rotateX(4deg); transform-style: preserve-3d; transition: transform .5s var(--ease); }
.window::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(500px 220px at var(--mx, 70%) var(--my, 0%), rgba(255,255,255,.07), transparent 60%);
}
.window { position: relative; }
.window__bar { display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--line-soft); background: rgba(0,0,0,.18); }
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.r { background: #ff5f57; } .dot.y { background: #febc2e; } .dot.g { background: #28c840; }
.window__title { margin-left: 10px; font: 500 .78rem var(--mono); color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.app { display: grid; grid-template-columns: 170px 1fr; min-height: 360px; }
.app__side { border-right: 1px solid var(--line-soft); padding: 14px 10px; display: flex; flex-direction: column; background: rgba(0,0,0,.12); }
.app__label { font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; color: var(--faint); padding: 0 8px 8px; }
.lib { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.lib button {
  width: 100%; display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 9px;
  border: 1px solid transparent; background: none; text-align: left; font-size: .84rem; color: var(--dim); transition: background .2s, color .2s, border-color .2s;
}
.lib button:hover { background: rgba(255,255,255,.04); color: var(--fg); }
.lib button.is-on { background: rgba(245,165,36,.1); border-color: rgba(245,165,36,.35); color: var(--fg); }
.lib__ico { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-size: .7rem; font-weight: 700; color: #0b1017; flex: none; }
.app__add { margin-top: auto; border: 1px dashed var(--line); background: none; border-radius: 9px; padding: 7px; font-size: .82rem; color: var(--faint); transition: color .2s, border-color .2s; }
.app__add:hover { color: var(--accent); border-color: var(--accent); }
.app__add span { font-weight: 700; }
.app__main { padding: 16px 18px; display: flex; flex-direction: column; min-width: 0; }
.app__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.app__game { font-weight: 700; font-size: 1.15rem; }
.app__server { font-size: .8rem; color: var(--faint); display: flex; align-items: center; gap: 7px; }
.live { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 10px var(--good); animation: pulse 1.6s infinite; }
.app__stats { display: flex; gap: 14px; text-align: right; }
.app__stats b { display: block; font: 700 1.05rem var(--mono); color: var(--cyan); }
.app__stats small { font-size: .68rem; color: var(--faint); text-transform: uppercase; letter-spacing: .1em; }
.spark { height: 60px; margin: 12px 0; border-radius: 10px; background: rgba(0,0,0,.18); border: 1px solid var(--line-soft); overflow: hidden; }
.spark svg { width: 100%; height: 100%; }
#sparkPath { fill: none; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; }
#sparkFill { fill: url(#none); fill: rgba(245,165,36,.12); stroke: none; }
.app__log { flex: 1; margin: 0; font-size: .74rem; line-height: 1.65; color: var(--dim); white-space: pre-wrap; overflow: hidden; min-height: 150px; max-height: 190px;
  mask-image: linear-gradient(180deg, transparent, #000 30%); -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%); }
.app__log .t { color: var(--faint); }
.app__log .ok { color: var(--good); }
.app__log .warn { color: var(--accent); }
.app__log .who { color: var(--cyan); }

.float {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px;
  background: rgba(18,26,38,.88); border: 1px solid var(--line); backdrop-filter: blur(10px); box-shadow: var(--shadow); font-size: .85rem;
  animation: bob 6s ease-in-out infinite;
}
.float b { display: block; font-weight: 600; }
.float small { color: var(--faint); }
.float__icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--panel-2); font-size: 1rem; }
.float--a { left: -34px; bottom: 44px; }
.float--b { right: -18px; top: -22px; animation-delay: -3s; }

/* marquee */
.marquee { margin-top: 90px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
.marquee__track { display: flex; gap: 64px; width: max-content; animation: marquee 28s linear infinite; }
.marquee__track span { font-size: 1.35rem; font-weight: 700; color: rgba(231,236,243,.5); letter-spacing: .02em; white-space: nowrap; text-transform: uppercase; }

/* ---------- sections ---------- */
.section { padding: 110px 0; position: relative; }
.section--tight { padding: 30px 0 110px; }
.section--alt { background: linear-gradient(180deg, transparent, rgba(15,22,32,.75) 12%, rgba(15,22,32,.75) 88%, transparent); }
.section__head { max-width: 720px; margin-bottom: 52px; }
.section__head p { color: var(--dim); font-size: 1.08rem; margin: 1rem 0 0; }
.eyebrow { display: inline-block; font: 600 .78rem var(--mono); text-transform: uppercase; letter-spacing: .18em; color: var(--accent); margin-bottom: 1rem; }
.eyebrow::before { content: "// "; color: var(--faint); }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step {
  position: relative; padding: 30px; border-radius: var(--radius-lg); border: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(23,33,49,.7), rgba(15,22,32,.5)); overflow: hidden; transition: border-color .3s, transform .3s var(--ease);
}
.step:hover { border-color: var(--line); transform: translateY(-4px); }
.step__num { position: absolute; top: 18px; right: 22px; font: 700 3.4rem var(--mono); color: rgba(255,255,255,.04); }
.step__icon { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; background: rgba(245,165,36,.1); border: 1px solid rgba(245,165,36,.3); margin-bottom: 20px; }
.step__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.step p { color: var(--dim); margin: .6rem 0 0; }

/* games */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip { padding: .45rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: rgba(18,26,38,.6); color: var(--dim); font-size: .9rem; transition: all .2s; }
.chip:hover { color: var(--fg); border-color: var(--faint); }
.chip.is-on { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); font-weight: 600; }
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 20px; }
.game {
  --c: var(--accent);
  position: relative; display: flex; flex-direction: column; padding: 26px; border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft); background: var(--panel); overflow: hidden; isolation: isolate;
  transition: transform .35s var(--ease), border-color .3s, opacity .35s, filter .35s;
}
.game::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .55; transition: opacity .35s;
  background: radial-gradient(420px 220px at 100% 0%, color-mix(in srgb, var(--c) 28%, transparent), transparent 70%);
}
.game::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; opacity: 0; transition: opacity .35s;
  background: radial-gradient(300px circle at var(--gx, 50%) var(--gy, 50%), color-mix(in srgb, var(--c) 18%, transparent), transparent 70%);
}
.game:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--c) 50%, var(--line)); }
.game:hover::before { opacity: 1; }
.game:hover::after { opacity: 1; }
.game[hidden] { display: none; }
.game__top { display: flex; align-items: center; gap: 14px; }
.game__logo { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-weight: 700; font-size: 1.05rem; color: #0b1017; background: var(--c); box-shadow: 0 10px 30px -8px var(--c); }
.game__name { font-size: 1.2rem; font-weight: 700; }
.game__ver { font: 500 .75rem var(--mono); color: var(--faint); }
.game__badge { margin-left: auto; font: 600 .7rem var(--mono); text-transform: uppercase; letter-spacing: .08em; padding: .3rem .6rem; border-radius: 999px; color: var(--good); background: rgba(52,211,153,.1); border: 1px solid rgba(52,211,153,.3); }
.game__badge--new { color: var(--accent-fg); background: var(--c); border-color: var(--c); box-shadow: 0 0 18px -4px var(--c); }
.game p { color: var(--dim); margin: 1rem 0 1.2rem; font-size: .96rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.tag { font-size: .75rem; padding: .22rem .6rem; border-radius: 7px; background: rgba(255,255,255,.05); color: var(--dim); border: 1px solid var(--line-soft); }
.game__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--line-soft); font: .78rem var(--mono); color: var(--faint); }
.game__more { color: var(--fg); font: 600 .84rem var(--font); }
.game__more:hover { color: var(--accent); text-decoration: underline; }
.game__add { border: 1px solid var(--line); background: rgba(255,255,255,.03); padding: .38rem .8rem; border-radius: 9px; font: 600 .82rem var(--font); color: var(--fg); transition: all .2s; }
.game__add:hover { background: var(--c); color: #0b1017; border-color: var(--c); }
.game__add.is-done { background: rgba(52,211,153,.12); color: var(--good); border-color: rgba(52,211,153,.4); }

/* split */
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: center; }
.split--rev .split__copy { order: 2; }
.split__copy p { color: var(--dim); font-size: 1.06rem; }
.split__copy h2 { margin-bottom: 1rem; }
.hints { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 1.5rem 0; color: var(--faint); font-size: .9rem; }
.kbd { font: 500 .82rem var(--mono); padding: .35rem .7rem; border-radius: 8px; border: 1px solid var(--line); border-bottom-width: 2px; background: var(--panel); color: var(--accent-2); transition: transform .15s, border-color .2s; }
.kbd:hover { border-color: var(--accent); transform: translateY(-1px); }
.kbd:active { transform: translateY(1px); border-bottom-width: 1px; }
.select { display: inline-flex; align-items: center; gap: 10px; color: var(--faint); font-size: .9rem; }
.select select { appearance: none; padding: .55rem 2.2rem .55rem .9rem; border-radius: 10px; border: 1px solid var(--line); color: var(--fg); font: 500 .92rem var(--font);
  background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238390a5' stroke-width='1.6' fill='none'/%3E%3C/svg%3E") no-repeat right .8rem center / 11px; }

/* terminal */
.term { display: flex; flex-direction: column; height: 460px; }
.term__body { flex: 1; overflow-y: auto; padding: 16px 18px; font: .84rem/1.7 var(--mono); color: var(--dim); scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.term__body .ln { white-space: pre-wrap; word-break: break-word; animation: lineIn .25s var(--ease); }
.term__body .cmd { color: var(--fg); }
.term__body .cmd::before { content: attr(data-p) " "; color: var(--accent); }
.term__body .ok { color: var(--good); }
.term__body .err { color: var(--bad); }
.term__body .info { color: var(--cyan); }
.term__body .mut { color: var(--faint); }
.term__in { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--line-soft); background: rgba(0,0,0,.2); }
.term__prompt { font: 600 .84rem var(--mono); color: var(--accent); white-space: nowrap; }
.term__in input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--fg); font: .9rem var(--mono); caret-color: var(--accent); }

/* people */
.checks { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: .7rem; }
.checks li { position: relative; padding-left: 1.9rem; color: var(--dim); }
.checks li::before { content: "✓"; position: absolute; left: 0; top: .1em; width: 1.3rem; height: 1.3rem; border-radius: 6px; display: grid; place-items: center; font-size: .75rem; font-weight: 700; color: var(--accent-fg); background: var(--accent); }
.people { border-radius: var(--radius-lg); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(23,33,49,.92), rgba(15,22,32,.96)); box-shadow: var(--shadow); padding: 18px; }
.people__tabs { display: flex; gap: 8px; margin-bottom: 16px; overflow-x: auto; padding-bottom: 2px; }
.ptab { display: flex; align-items: center; gap: 9px; padding: 7px 14px 7px 7px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--dim); font-size: .9rem; white-space: nowrap; transition: all .2s; }
.ptab:hover { color: var(--fg); }
.ptab.is-on { border-color: var(--accent); color: var(--fg); background: rgba(245,165,36,.08); }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .8rem; color: #0b1017; flex: none; }
.people__who { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.people__who .avatar { width: 44px; height: 44px; font-size: 1rem; }
.people__who b { display: block; font-size: 1.05rem; }
.people__who small { color: var(--faint); }
.people__who .badge { margin-left: auto; font: 600 .7rem var(--mono); padding: .3rem .6rem; border-radius: 999px; border: 1px solid var(--line); color: var(--cyan); }
.matrix { width: 100%; border-collapse: collapse; font-size: .9rem; }
.matrix th { text-align: left; font: 600 .7rem var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--faint); padding: 8px 10px; border-bottom: 1px solid var(--line-soft); }
.matrix td { padding: 9px 10px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.matrix tr:last-child td { border-bottom: 0; }
.matrix .g { display: flex; align-items: center; gap: 9px; font-weight: 500; }
.matrix select { appearance: none; padding: .35rem 1.8rem .35rem .65rem; border-radius: 8px; border: 1px solid var(--line); color: var(--fg); font: .85rem var(--font); width: 100%; max-width: 150px;
  background: var(--bg-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238390a5' stroke-width='1.6' fill='none'/%3E%3C/svg%3E") no-repeat right .6rem center / 10px; }
.matrix select[data-role="None"] { color: var(--faint); }
.srv { display: flex; flex-wrap: wrap; gap: 5px; }
.srv button { font: 500 .72rem var(--mono); padding: .22rem .5rem; border-radius: 6px; border: 1px solid var(--line); background: none; color: var(--faint); transition: all .2s; }
.srv button.is-on { color: var(--cyan); border-color: rgba(45,217,218,.45); background: rgba(45,217,218,.08); }
.srv button:disabled { opacity: .35; cursor: not-allowed; }
.people__summary { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: rgba(0,0,0,.22); border: 1px solid var(--line-soft); font: .8rem/1.6 var(--mono); color: var(--dim); }
.people__summary b { color: var(--accent-2); font-weight: 500; }

/* bento */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile { padding: 28px; border-radius: var(--radius-lg); border: 1px solid var(--line-soft); background: linear-gradient(180deg, rgba(23,33,49,.75), rgba(15,22,32,.6)); transition: border-color .3s, transform .3s var(--ease); }
.tile:hover { border-color: var(--line); transform: translateY(-4px); }
.tile--wide { grid-column: span 3; display: grid; grid-template-columns: 1fr 1.3fr; gap: 32px; align-items: center; }
.tile h3 { margin-bottom: .6rem; }
.tile p { color: var(--dim); margin: 0; }
.tile__icon { font-size: 1.5rem; width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--line); margin-bottom: 18px; }
.tile--wide > h3, .tile--wide > p { grid-column: 1; }
.tile--wide .diagram { grid-column: 2; grid-row: 1 / span 2; }
.diagram { display: grid; grid-template-columns: 1fr 50px 1fr; align-items: center; gap: 0; }
.node { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); font: 600 .88rem var(--mono); }
.node small { display: block; font-weight: 400; font-size: .7rem; color: var(--faint); margin-top: 2px; }
.node--hub { border-color: rgba(245,165,36,.5); box-shadow: 0 0 40px -10px rgba(245,165,36,.5); color: var(--accent-2); }
.nodes { display: grid; gap: 10px; }
.nodes .node { color: var(--cyan); }
.wires { height: 100%; position: relative; display: flex; flex-direction: column; justify-content: space-around; }
.wires span { display: block; height: 2px; background: linear-gradient(90deg, var(--accent), var(--cyan)); background-size: 200% 100%; opacity: .6; position: relative; overflow: hidden; }
.wires span::after { content: ""; position: absolute; top: -2px; width: 8px; height: 6px; border-radius: 3px; background: #fff; box-shadow: 0 0 10px #fff; animation: packet 2.2s linear infinite; }
.wires span:nth-child(2)::after { animation-delay: .7s; }
.wires span:nth-child(3)::after { animation-delay: 1.4s; }

/* cta */
.cta { position: relative; overflow: hidden; text-align: center; padding: 72px 32px; border-radius: 28px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(23,33,49,.95), rgba(11,16,23,.95)); }
.cta__glow { position: absolute; inset: -40% -10% auto; height: 120%; background: conic-gradient(from 180deg at 50% 50%, transparent, rgba(245,165,36,.22), rgba(45,217,218,.18), transparent 60%); filter: blur(60px); animation: spin 18s linear infinite; pointer-events: none; }
.cta > * { position: relative; }
.cta p { color: var(--dim); margin: 1rem auto 2rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }
.sha { display: inline-flex; align-items: center; gap: 10px; margin-top: 2rem; padding: 8px 8px 8px 14px; border-radius: 12px; border: 1px solid var(--line-soft); background: rgba(0,0,0,.25); font-size: .78rem; color: var(--faint); max-width: 100%; }
.sha code { background: none; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.copy { border: 1px solid var(--line); background: var(--panel); border-radius: 8px; padding: .3rem .7rem; font-size: .78rem; flex: none; }
.copy:hover { border-color: var(--accent); }

/* timeline */
.timeline { list-style: none; margin: 0; padding: 0 0 0 24px; border-left: 2px solid var(--line); display: grid; gap: 22px; max-width: 820px; }
.timeline li { position: relative; display: grid; grid-template-columns: 120px 1fr; gap: 16px; color: var(--dim); }
.timeline li::before { content: ""; position: absolute; left: -32px; top: .45em; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 3px solid var(--accent); }
.timeline time { font: 500 .82rem var(--mono); color: var(--faint); padding-top: .15em; }
.timeline b { color: var(--fg); }
.timeline__name { color: inherit; text-decoration: none; }
.timeline__name:hover { color: var(--accent); }
.timeline__more { margin-top: 28px; max-width: 820px; }
.updates__filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.updates__items { margin: .35em 0 0; padding-left: 1.1em; display: grid; gap: .25em; }
.updates__items li { display: list-item; position: static; grid-template-columns: none; color: var(--dim); }
.updates__items li::before { content: none; }

/* faq */
.faq { max-width: 860px; }
.faq__list { display: grid; gap: 12px; }
details { border: 1px solid var(--line-soft); border-radius: var(--radius); background: rgba(18,26,38,.6); transition: border-color .2s, background .2s; }
details[open] { border-color: var(--line); background: rgba(23,33,49,.75); }
summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font: 400 1.4rem var(--mono); color: var(--accent); transition: transform .3s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0; padding: 0 22px 20px; color: var(--dim); }

/* request */
.request { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 28px 32px; border-radius: var(--radius-lg); border: 1px dashed var(--line); background: rgba(18,26,38,.5); }
.request p { margin: .3rem 0 0; color: var(--faint); font-size: .9rem; }
.request__row { display: flex; gap: 10px; flex: 1; max-width: 460px; min-width: 260px; }
.request input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); color: var(--fg); font: inherit; }
.request input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(245,165,36,.15); }

/* footer */
.footer { border-top: 1px solid var(--line-soft); padding: 36px 0; }
.footer__inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.brand--sm { font-size: 1rem; }
.brand--sm .brand__mark { width: 28px; height: 28px; }
.brand--sm .brand__mark svg { width: 20px; height: 20px; }
.footer__links { display: flex; gap: 20px; margin-left: auto; }
.footer__links a { color: var(--dim); font-size: .92rem; }
.footer__links a:hover { color: var(--accent); }
.footer small { color: var(--faint); width: 100%; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 100; transform: translate(-50%, 140%); padding: 12px 18px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: .92rem; transition: transform .4s var(--ease); max-width: calc(100% - 32px); }
.toast.is-on { transform: translate(-50%, 0); }
.toast b { color: var(--accent); }

/* reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- shared panel bits ---------- */
.panel { border-radius: var(--radius-lg); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(23,33,49,.92), rgba(15,22,32,.96)); box-shadow: var(--shadow); padding: 18px; min-width: 0; }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.panel__title { font-weight: 600; }
.panel__tools { display: flex; gap: 6px; flex-wrap: wrap; }
.mono-faint { font: .74rem var(--mono); color: var(--faint); }
.mini { display: inline-flex; align-items: center; font: 500 .78rem var(--font); padding: .3rem .65rem; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--dim); cursor: pointer; transition: all .2s; }
.mini:hover { color: var(--fg); border-color: var(--accent); }
.link-btn { background: none; border: 0; padding: .3rem 0; color: var(--accent); font-size: .86rem; font-weight: 500; text-align: left; justify-self: start; }
.link-btn:hover { text-decoration: underline; }
.badge-soft { font: 600 .7rem var(--mono); padding: .3rem .6rem; border-radius: 999px; color: var(--cyan); border: 1px solid rgba(45,217,218,.35); background: rgba(45,217,218,.07); }
.sentence select, .sentence input, .ff__name input, .banform input, .banform select {
  appearance: none; height: 34px; padding: 0 .7rem; border-radius: 9px; border: 1px solid var(--line); background-color: var(--bg-2); color: var(--fg); font: .86rem var(--font); min-width: 0;
}
.sentence select, .banform select { padding-right: 1.8rem; background: var(--bg-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238390a5' stroke-width='1.6' fill='none'/%3E%3C/svg%3E") no-repeat right .6rem center / 10px; }
.sentence input:focus, .sentence select:focus, .ff__name input:focus, .banform input:focus, .banform select:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(245,165,36,.15); }
.sentence input[type=number] { width: 76px; }
.sentence input[type=text] { width: 140px; }

/* ---------- fair fight ---------- */
.howto { list-style: none; counter-reset: h; padding: 0; margin: 0 0 32px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.howto li { counter-increment: h; padding: 16px; border-radius: var(--radius); border: 1px solid var(--line-soft); background: rgba(18,26,38,.6); }
.howto li::before { content: counter(h); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; margin-bottom: 10px; font: 700 .8rem var(--mono); color: var(--accent-fg); background: var(--accent); }
.howto b { display: block; margin-bottom: .25rem; }
.howto span { font-size: .86rem; color: var(--dim); }
.ff { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; align-items: start; }
.ff__side { display: grid; gap: 20px; min-width: 0; }
.ff__name { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--faint); font-size: .85rem; }
.ff__name input { flex: 1; }
.sentence { padding: 14px; border-radius: 14px; background: rgba(0,0,0,.22); border: 1px solid var(--line-soft); display: grid; gap: 8px; }
.sent-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.sent-row .x { margin-left: auto; width: 28px; height: 28px; border-radius: 8px; border: 1px solid transparent; background: none; color: var(--faint); font-size: 1rem; line-height: 1; }
.sent-row .x:hover { color: var(--bad); border-color: var(--line); }
.sent-row--esc { margin-top: 6px; padding-top: 12px; border-top: 1px dashed var(--line); }
.sent-row--esc.is-off > :not(.toggle) { opacity: .4; }
.kw { font: 700 .8rem var(--mono); color: var(--accent); text-transform: uppercase; letter-spacing: .06em; min-width: 2.6em; }
.kw--c { color: var(--cyan); }
.toggle { position: relative; display: inline-block; width: 36px; height: 20px; flex: none; }
.toggle input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.toggle span { position: absolute; inset: 0; border-radius: 99px; background: var(--line); transition: background .2s; }
.toggle span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); }
.toggle input:checked + span { background: var(--accent); }
.toggle input:checked + span::after { transform: translateX(16px); }
.toggle input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.summary { margin-top: 14px; padding: 12px 14px; border-radius: 12px; border-left: 3px solid var(--accent); background: rgba(245,165,36,.06); color: var(--fg); font-size: .95rem; }
.summary small { display: block; color: var(--faint); font-size: .72rem; margin-bottom: 2px; text-transform: uppercase; letter-spacing: .1em; }
.ff__btns { display: flex; gap: 8px; margin-top: 14px; }
.rules { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; max-height: 300px; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.rule { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; border: 1px solid var(--line-soft); background: rgba(0,0,0,.15); transition: border-color .2s, background .2s; }
.rule.is-sel { border-color: var(--accent); background: rgba(245,165,36,.06); }
.rule.is-off { border-style: dashed; background: none; }
.rule.is-off .rule__text b { color: var(--dim); }
.rule.is-off .rule__text b::after { content: " · off"; color: var(--faint); font-weight: 500; }
.rule.is-hit { animation: hit .9s var(--ease); }
.rule__text { flex: 1; min-width: 0; cursor: pointer; background: none; border: 0; text-align: left; padding: 0; }
.rule__text b { display: block; font-size: .88rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rule__text small { display: block; font-size: .74rem; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rule__btns { display: flex; gap: 2px; }
.rule__btns button { width: 26px; height: 26px; border-radius: 7px; border: 0; background: none; color: var(--faint); font-size: .8rem; }
.rule__btns button:hover { background: rgba(255,255,255,.06); color: var(--fg); }
.rule__btns button[data-act=del]:hover { color: var(--bad); }
.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); }
.seg button { border: 0; background: none; padding: .3rem .7rem; border-radius: 7px; font-size: .78rem; color: var(--faint); }
.seg button.is-on { background: var(--panel-2); color: var(--fg); box-shadow: 0 0 0 1px var(--line); }
.seg button[data-mode=act].is-on { color: var(--bad); }
.sim__log { height: 210px; overflow-y: auto; font: .76rem/1.6 var(--mono); color: var(--dim); padding: 10px 12px; border-radius: 12px; background: rgba(0,0,0,.25); border: 1px solid var(--line-soft); scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.sim__log > div { animation: lineIn .25s var(--ease); padding: 1px 0; white-space: pre-wrap; }
.sim__log .ev { color: var(--faint); }
.sim__log .hit { color: var(--accent-2); }
.sim__log .act { color: var(--bad); }
.sim__log .would { color: var(--cyan); }
.sim__log .safe { color: var(--good); }
.sim__foot { display: flex; align-items: center; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.safety { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.safety li { padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--line-soft); font-size: .88rem; color: var(--dim); background: rgba(18,26,38,.5); }
.safety b { color: var(--fg); display: block; margin-bottom: 2px; }

/* ---------- bans ---------- */
.bans { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; align-items: start; }
.banform { display: grid; grid-template-columns: 1.4fr 1.2fr .9fr auto; gap: 8px; margin-bottom: 16px; }
.lists { border: 1px solid var(--line-soft); border-radius: 12px; overflow: hidden; font-size: .84rem; }
.lists__row { display: grid; grid-template-columns: 1.6fr repeat(var(--cols, 4), minmax(0, 1fr)); align-items: center; border-top: 1px solid var(--line-soft); }
.lists__row:first-child { border-top: 0; }
.lists__row > * { padding: 8px 10px; min-width: 0; }
.lists__row--head { background: rgba(0,0,0,.2); font: 600 .68rem var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--faint); }
.lists__row--head > span { text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lists__row--head > span:first-child { text-align: left; }
.ln-name b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ln-name small { color: var(--faint); font: .7rem var(--mono); }
.lists__row .cell { display: grid; place-items: center; }
.lists__row.is-new { animation: hit 1.2s var(--ease); }
.chk { width: 22px; height: 22px; border-radius: 6px; border: 1px solid var(--line); background: var(--bg-2); color: transparent; font-size: .75rem; font-weight: 700; display: grid; place-items: center; padding: 0; transition: all .2s; }
.chk.is-on { background: var(--cyan); border-color: var(--cyan); color: #0b1017; }
.chk:disabled { cursor: not-allowed; }
.push { margin: 14px 0 6px; padding: 14px; border-radius: 12px; background: rgba(0,0,0,.22); border: 1px solid var(--line-soft); }
.push__src { font-size: .86rem; color: var(--dim); margin-bottom: 10px; }
.push__src b { color: var(--accent-2); font-weight: 600; }
.push__servers { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.srvbox { position: relative; padding: 9px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-2); font: .72rem var(--mono); overflow: hidden; }
.srvbox b { display: block; font: 600 .78rem var(--font); color: var(--fg); }
.srvbox small { color: var(--faint); }
.srvbox.is-skip { border-style: dashed; background: none; }
.srvbox.is-skip b { color: var(--dim); }
.srvbox.is-busy small { color: var(--accent); }
.srvbox.is-done { border-color: rgba(52,211,153,.5); }
.srvbox.is-done small { color: var(--good); }
.srvbox.is-busy::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 40%; background: var(--accent); animation: packet .8s linear infinite; }
.mini-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 6px; }
.mini-list li { position: relative; padding-left: 1.2rem; font-size: .84rem; color: var(--dim); }
.mini-list li::before { content: "›"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.pipe { list-style: none; margin: 0; padding: 0; display: grid; }
.pipe li { position: relative; display: flex; gap: 12px; padding: 9px 8px; border-radius: 12px; transition: background .3s; }
.pipe li:not(:last-child)::after { content: ""; position: absolute; left: 21px; top: 38px; bottom: -8px; width: 2px; background: var(--line); transition: background .3s; }
.pipe__n { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 700 .76rem var(--mono); border: 2px solid var(--line); background: var(--bg-2); color: var(--faint); transition: all .3s; position: relative; z-index: 1; }
.pipe b { display: block; font-size: .92rem; }
.pipe small b { display: inline; font-size: inherit; color: var(--fg); }
.pipe small { display: block; color: var(--faint); font-size: .8rem; line-height: 1.45; }
.pipe li.is-done .pipe__n { border-color: var(--cyan); color: #0b1017; background: var(--cyan); }
.pipe li.is-done::after { background: var(--cyan); }
.pipe li.is-now { background: rgba(245,165,36,.07); }
.pipe li.is-now .pipe__n { border-color: var(--accent); color: var(--accent-fg); background: var(--accent); box-shadow: 0 0 0 5px rgba(245,165,36,.18); }
.gbl__foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.gbl__note { margin-top: 14px; padding: 12px 14px; border-radius: 12px; border: 1px dashed var(--line); font-size: .85rem; color: var(--dim); }
.gbl__note b { color: var(--fg); }

/* ---------- clanstop (coming soon) ---------- */
.soon { color: var(--cyan); }
.badge-soon { font: 600 .7rem var(--mono); padding: .3rem .65rem; border-radius: 999px; color: var(--accent-fg); background: linear-gradient(90deg, var(--accent-2), var(--cyan)); letter-spacing: .04em; }
.cs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.cs__pick { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.cs__pick button { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--dim); font-size: .84rem; transition: all .2s; }
.cs__pick button:hover { color: var(--fg); }
.cs__pick button.is-on { border-color: var(--accent); color: var(--fg); background: rgba(245,165,36,.08); }
.listing { --c: var(--accent); position: relative; padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: radial-gradient(400px 160px at 100% 0%, color-mix(in srgb, var(--c) 18%, transparent), transparent 70%), var(--bg-2); transition: border-color .4s, box-shadow .4s; }
.listing.is-live { border-color: color-mix(in srgb, var(--good) 60%, var(--line)); box-shadow: 0 0 0 4px rgba(52,211,153,.1); }
.listing.is-off { border-style: dashed; }
.listing.is-off .listing__logo { filter: grayscale(.8); }
.listing__top { display: flex; align-items: center; gap: 12px; }
.listing__logo { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; color: #0b1017; background: var(--c); flex: none; }
.listing__titles { min-width: 0; flex: 1; }
.listing__titles b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.listing__titles small { color: var(--faint); font-size: .8rem; }
.listing__state { flex: none; font: 600 .7rem var(--mono); padding: .28rem .6rem; border-radius: 999px; border: 1px solid var(--line); color: var(--faint); }
.listing.is-live .listing__state { color: var(--good); border-color: rgba(52,211,153,.45); background: rgba(52,211,153,.08); }
.listing p { color: var(--dim); font-size: .9rem; margin: 12px 0; }
.listing__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.listing__stats div, .profile__grid div { padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.03); border: 1px solid var(--line-soft); }
.listing__stats b, .profile__grid b { display: block; font: 700 1rem var(--mono); color: var(--cyan); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.listing__stats small, .profile__grid small { font-size: .7rem; color: var(--faint); }
.cs__opts { display: grid; gap: 8px; margin: 14px 0; }
.cs__opt { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-soft); background: rgba(0,0,0,.15); cursor: pointer; }
.cs__opt .toggle { margin-top: 2px; }
.cs__opt b { display: block; font-size: .9rem; font-weight: 600; }
.cs__opt small { color: var(--faint); font-size: .8rem; }
.cs__go { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cs__steps { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; counter-reset: c; }
.cs__steps li { counter-increment: c; font: .72rem var(--mono); color: var(--faint); padding: .3rem .55rem; border-radius: 8px; border: 1px solid var(--line-soft); transition: all .3s; }
.cs__steps li.is-now { color: var(--accent-fg); background: var(--accent); border-color: var(--accent); }
.cs__steps li.is-done { color: var(--good); border-color: rgba(52,211,153,.4); }
.profile { padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg-2); }
.profile__head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.profile__head .avatar { width: 46px; height: 46px; font-size: 1.05rem; }
.profile__head b { display: block; font-size: 1.05rem; }
.profile__head small { color: var(--faint); font-size: .8rem; }
.profile__flag { margin-left: auto; font: 600 .7rem var(--mono); padding: .28rem .6rem; border-radius: 999px; border: 1px solid var(--line); white-space: nowrap; }
.profile__flag.good { color: var(--good); border-color: rgba(52,211,153,.4); }
.profile__flag.warn { color: var(--accent); border-color: rgba(245,165,36,.45); }
.profile__flag.bad { color: var(--bad); border-color: rgba(248,113,113,.45); }
.profile__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.profile__chart { margin-top: 14px; }
.profile__label { display: flex; justify-content: space-between; gap: 8px; font-size: .74rem; color: var(--faint); margin-bottom: 6px; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 64px; padding: 6px; border-radius: 10px; background: rgba(0,0,0,.2); border: 1px solid var(--line-soft); }
.bars span { flex: 1; min-height: 2px; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, var(--accent-2), var(--accent)); transform-origin: bottom; animation: grow .5s var(--ease) both; }
.bars span.hi { background: linear-gradient(180deg, #fca5a5, var(--bad)); }
.profile__feed { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 4px; font: .76rem/1.5 var(--mono); color: var(--dim); }
.profile__feed li { display: flex; gap: 10px; }
.profile__feed time { color: var(--faint); flex: none; width: 6.4em; }

/* clanstop statuses, consent, sent / never sent */
.dot-st { width: 8px; height: 8px; border-radius: 50%; background: var(--line); margin-left: 2px; }
.dot-st.good { background: var(--good); box-shadow: 0 0 8px var(--good); }
.dot-st.bad { background: var(--bad); }
.dot-st.warn { background: var(--accent); }
.listing__state.good { color: var(--good); border-color: rgba(52,211,153,.45); background: rgba(52,211,153,.08); }
.listing__state.bad { color: var(--bad); border-color: rgba(248,113,113,.45); background: rgba(248,113,113,.08); }
.listing__state.warn { color: var(--accent); border-color: rgba(245,165,36,.45); background: rgba(245,165,36,.08); }
.cs__status { margin-top: 12px; padding: 10px 12px; border-radius: 10px; font-size: .84rem; color: var(--dim); border: 1px solid var(--line); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cs__status.good { border-color: rgba(52,211,153,.35); }
.cs__status.bad { border-color: rgba(248,113,113,.4); background: rgba(248,113,113,.05); }
.cs__status.warn { border-color: rgba(245,165,36,.4); background: rgba(245,165,36,.05); }
.cs__status .mini { margin-left: auto; }
.cs__opt.is-disabled { opacity: .45; cursor: not-allowed; }
.sent { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.sent > div { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-soft); background: rgba(0,0,0,.15); }
.sent b { display: block; font: 600 .72rem var(--mono); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 6px; }
.sent__yes { color: var(--good); }
.sent__no { color: var(--bad); }
.sent ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: .82rem; color: var(--dim); }

/* profiles */
.watch { margin-left: auto; position: relative; cursor: pointer; flex: none; }
.watch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.watch span { display: inline-block; font-size: .78rem; padding: .3rem .7rem; border-radius: 999px; border: 1px solid var(--line); color: var(--faint); transition: all .2s; }
.watch.is-on span { color: var(--accent-fg); background: var(--accent); border-color: var(--accent); }
.watch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.pf-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 12px; }
.tag--add { cursor: pointer; border-style: dashed; color: var(--faint); background: none; font: inherit; font-size: .75rem; }
.tag--add:hover { color: var(--accent); border-color: var(--accent); }
.lib__ico--sm { display: inline-grid; width: 16px; height: 16px; font-size: .5rem; border-radius: 4px; vertical-align: -3px; }
.pf-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.pf-cols .profile__feed { margin-top: 0; }
.profile__feed li { align-items: baseline; }
.profile__feed em { font-style: normal; color: var(--faint); }
.notes { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 6px; max-height: 132px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.notes li { font-size: .8rem; padding: 7px 9px; border-radius: 9px; background: rgba(255,255,255,.03); border: 1px solid var(--line-soft); }
.notes b { font-size: .76rem; color: var(--cyan); }
.notes time { font: .68rem var(--mono); color: var(--faint); }
.notes span { display: block; color: var(--dim); margin-top: 2px; }
.note-form { display: flex; gap: 6px; }
.note-form input { flex: 1; min-width: 0; height: 30px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); font: .8rem var(--font); }
.note-form input:focus { outline: 0; border-color: var(--accent); }
.pf-cs { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: .84rem; color: var(--dim); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* triggers */
.trig { margin-top: 40px; }
.trig__head { margin-bottom: 18px; max-width: 760px; }
.trig__head h3 { font-size: 1.4rem; margin-bottom: .5rem; }
.trig__head p { color: var(--dim); margin: 0; }
.trig__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.trigcard { padding: 16px; border-radius: var(--radius); border: 1px solid var(--line-soft); background: rgba(18,26,38,.7); transition: border-color .25s, transform .25s var(--ease); }
.trigcard:hover { border-color: var(--line); transform: translateY(-3px); }
.trigcard__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.trigcard__top b { font-size: .95rem; }
.trigcard__top span { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.trigcard__top i { font: normal 600 .62rem var(--mono); padding: .15rem .45rem; border-radius: 6px; color: #e8794a; border: 1px solid rgba(232,121,74,.4); white-space: nowrap; }
.trigcard__top i:nth-child(2) { color: #a3e635; border-color: rgba(163,230,53,.4); }
.trigcard p { margin: 0; font-size: .84rem; color: var(--dim); line-height: 1.55; }
.trigcard .kw { font-size: .7rem; min-width: 0; margin-right: 2px; }

/* leaderboards */
.lb__controls { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.lb__controls select { appearance: none; height: 34px; padding: 0 1.8rem 0 .7rem; border-radius: 9px; border: 1px solid var(--line); color: var(--fg); font: .86rem var(--font); min-width: 0;
  background: var(--bg-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238390a5' stroke-width='1.6' fill='none'/%3E%3C/svg%3E") no-repeat right .6rem center / 10px; }
.lb__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.lb__list li { display: grid; grid-template-columns: 32px minmax(0, 1.2fr) minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line-soft); background: rgba(0,0,0,.15); animation: lineIn .3s var(--ease) both; }
.lb__rank { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font: 700 .78rem var(--mono); color: var(--faint); background: var(--bg-2); }
.lb__list .top1 .lb__rank { color: #1a1204; background: linear-gradient(180deg, #ffe08a, #f5a524); }
.lb__list .top2 .lb__rank { color: #0b1017; background: linear-gradient(180deg, #e5e7eb, #9ca3af); }
.lb__list .top3 .lb__rank { color: #1a1204; background: linear-gradient(180deg, #f3b98a, #c9773c); }
.lb__name { font-weight: 600; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb__bar { height: 6px; border-radius: 99px; background: rgba(255,255,255,.05); overflow: hidden; }
.lb__bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--cyan)); transition: width .5s var(--ease); }
.lb__val { font: 700 .86rem var(--mono); color: var(--cyan); white-space: nowrap; }
.lb__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 12px; }

/* roadmap */
.road { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.road__col { padding: 24px; border-radius: var(--radius-lg); border: 1px solid var(--line-soft); background: linear-gradient(180deg, rgba(23,33,49,.75), rgba(15,22,32,.6)); }
.road__tag { display: inline-block; font: 600 .72rem var(--mono); text-transform: uppercase; letter-spacing: .1em; padding: .3rem .7rem; border-radius: 999px; margin-bottom: 16px; }
.road__tag--next { color: var(--accent-fg); background: var(--accent); }
.road__tag--soon { color: #0b1017; background: var(--cyan); }
.road__tag--plan { color: var(--dim); border: 1px solid var(--line); }
.road__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.road__col li { position: relative; padding-left: 1.2rem; color: var(--dim); font-size: .92rem; }
.road__col li::before { content: "›"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.road__col li b { color: var(--fg); }
.road__chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; }
.road__chips span { font-size: .75rem; padding: .25rem .6rem; border-radius: 7px; background: rgba(45,217,218,.07); color: var(--cyan); border: 1px solid rgba(45,217,218,.25); }
.road__small { font-size: .82rem; color: var(--faint); margin: 12px 0 0; }

/* flags page */
.lib__flags { margin-left: auto; font: 700 .64rem var(--mono); padding: .1rem .4rem; border-radius: 6px; color: var(--cyan); background: rgba(45,217,218,.1); }
.lib__flags.sev2 { color: var(--accent); background: rgba(245,165,36,.12); }
.lib__flags.sev3 { color: var(--bad); background: rgba(248,113,113,.12); }
.flags__filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.flags__filters select { appearance: none; height: 34px; padding: 0 1.8rem 0 .7rem; border-radius: 9px; border: 1px solid var(--line); color: var(--fg); font: .86rem var(--font);
  background: var(--bg-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238390a5' stroke-width='1.6' fill='none'/%3E%3C/svg%3E") no-repeat right .6rem center / 10px; }
.flags__count { margin-left: auto; }
.flags__scroll { position: relative; overflow-x: auto; border: 1px solid var(--line-soft); border-radius: 12px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.ftable { width: 100%; border-collapse: collapse; font-size: .86rem; min-width: 760px; }
.ftable th { text-align: left; padding: 9px 12px; background: rgba(0,0,0,.2); font: 600 .68rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--faint); white-space: nowrap; }
.ftable th button { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; }
.ftable th button:hover, .ftable th button.is-sort { color: var(--accent); }
.ftable th button.is-sort::after { content: " ↕"; }
.ftable td { padding: 10px 12px; border-top: 1px solid var(--line-soft); vertical-align: middle; }
.ftable tr { transition: opacity .3s; }
.ftable tr.is-handled td { color: var(--faint); }
.ftable tr.is-handled .fl-player { color: var(--dim); }
.ftable tbody tr:hover { background: rgba(255,255,255,.02); }
.fl-game { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.fl-game small { color: var(--faint); font-size: .74rem; }
.fl-player { color: var(--cyan); font-weight: 600; }
.fl-player:hover { text-decoration: underline; }
.fl-kind { font: .72rem var(--mono); padding: .15rem .45rem; border-radius: 6px; border: 1px solid var(--line); color: var(--dim); white-space: nowrap; }
.fl-reason { color: var(--dim); min-width: 220px; }
.fl-empty { text-align: center; padding: 22px !important; }
.sev { font: 700 .7rem var(--mono); text-transform: uppercase; padding: .2rem .5rem; border-radius: 6px; }
.sev--high { color: var(--bad); background: rgba(248,113,113,.12); }
.sev--medium { color: var(--accent); background: rgba(245,165,36,.12); }
.sev--low { color: var(--cyan); background: rgba(45,217,218,.1); }
.ftable .mini { white-space: nowrap; }
.flags__note { margin: 12px 0 0; }

/* rented servers */
.rent-games { display: grid; gap: 8px; margin: 1.4rem 0; }
.rent-game { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-soft); background: rgba(18,26,38,.6); }
.rent-game b { display: block; font-size: .92rem; }
.rent-game small { color: var(--faint); font-size: .8rem; }
.wiz__steps { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.wiz__steps li { font: .72rem var(--mono); text-align: center; padding: .4rem .3rem; border-radius: 8px; border: 1px solid var(--line-soft); color: var(--faint); transition: all .3s; }
.wiz__steps li.is-now { color: var(--accent-fg); background: var(--accent); border-color: var(--accent); }
.wiz__steps li.is-done { color: var(--good); border-color: rgba(52,211,153,.4); }
.wiz__body { min-height: 236px; display: grid; gap: 12px; align-content: start; animation: lineIn .3s var(--ease); }
.wiz__field { display: flex; align-items: center; gap: 10px; color: var(--faint); font-size: .85rem; }
.wiz__field select { appearance: none; flex: 1; height: 36px; padding: 0 1.8rem 0 .7rem; border-radius: 9px; border: 1px solid var(--line); color: var(--fg); font: .9rem var(--font);
  background: var(--bg-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238390a5' stroke-width='1.6' fill='none'/%3E%3C/svg%3E") no-repeat right .6rem center / 10px; }
.wiz__hosts, .wiz__list { display: grid; gap: 8px; }
.wiz__hosts button, .wiz__list button { text-align: left; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); transition: all .2s; }
.wiz__hosts button:hover, .wiz__list button:hover { border-color: var(--faint); }
.wiz__hosts button.is-on, .wiz__list button.is-on { border-color: var(--accent); background: rgba(245,165,36,.07); box-shadow: 0 0 0 3px rgba(245,165,36,.1); }
.wiz__hosts b, .wiz__list b { display: block; font-size: .95rem; }
.wiz__hosts small, .wiz__list small { color: var(--faint); font-size: .8rem; }
.wiz__p { margin: 0; color: var(--dim); font-size: .92rem; }
.wiz__fake { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-radius: 12px; border: 1px dashed var(--line); background: rgba(0,0,0,.2); }
.wiz__dots { font: .86rem var(--mono); color: var(--dim); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wiz__done { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.wiz__done li { position: relative; padding-left: 1.5rem; color: var(--dim); font-size: .9rem; }
.wiz__done li::before { content: "✓"; position: absolute; left: 0; color: var(--good); font-weight: 700; }
.wiz__foot { display: flex; justify-content: space-between; margin-top: 14px; }
.wiz__foot .btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }

/* beta notices */
.betabar { background: linear-gradient(90deg, rgba(245,165,36,.16), rgba(245,165,36,.07)); border-bottom: 1px solid rgba(245,165,36,.3); font-size: .82rem; color: var(--fg); }
.betabar__inner { display: flex; align-items: center; gap: 10px; min-height: 34px; padding: 5px 0; }
.betabar__inner > span:nth-child(2) { flex: 1; min-width: 0; }
.betabar__more { color: var(--dim); }
.betabar a { color: var(--accent); font-weight: 600; white-space: nowrap; }
.betabar a:hover { text-decoration: underline; }
.betabar__tag { flex: none; font: 700 .64rem var(--mono); letter-spacing: .1em; padding: .18rem .45rem; border-radius: 6px; color: var(--accent-fg); background: var(--accent); }
.brand__beta { font: 700 .58rem var(--mono); letter-spacing: .1em; padding: .15rem .4rem; border-radius: 5px; color: var(--accent); border: 1px solid rgba(245,165,36,.5); align-self: flex-start; margin-top: 2px; }
.tick--warn { color: var(--accent); }
.beta-box { max-width: 640px; margin: 0 auto 1.8rem; text-align: left; padding: 18px 20px; border-radius: 16px; border: 1px solid rgba(245,165,36,.45); background: rgba(245,165,36,.06); }
.beta-box__head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.beta-box__head b { font-size: 1.05rem; }
.beta-box p { margin: 0 0 10px !important; font-size: .92rem; color: var(--dim); }
.beta-box ul { margin: 0 0 14px; padding-left: 1.2rem; display: grid; gap: 6px; font-size: .9rem; color: var(--dim); }
.beta-box ul b { color: var(--fg); }
.beta-box__ack { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: rgba(0,0,0,.25); border: 1px solid var(--line); cursor: pointer; font-size: .88rem; }
.beta-box__ack input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); flex: none; cursor: pointer; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none !important; box-shadow: none; }
.wiz__warn { margin: 0; padding: 8px 12px; border-radius: 10px; border-left: 3px solid var(--accent); background: rgba(245,165,36,.07); font-size: .84rem; color: var(--fg); }
.footer small b { color: var(--accent); font-weight: 600; }

/* ---------- previews, moderation history, ban in all games ---------- */
.game__badge--preview { color: var(--accent); background: rgba(245,165,36,.1); border-color: rgba(245,165,36,.45); }
.modmark { font: 700 .72rem var(--mono); padding: .1rem .4rem; border-radius: 6px; color: var(--accent); background: rgba(245,165,36,.12); vertical-align: 2px; }
.tag--ban { cursor: pointer; font: inherit; font-size: .75rem; color: var(--bad); background: none; border-color: rgba(248,113,113,.45); }
.tag--ban:hover { background: rgba(248,113,113,.1); }
.banall { margin-bottom: 20px; }
.banall__intro { margin: -4px 0 14px; color: var(--dim); font-size: .95rem; }
.banall__form { display: grid; grid-template-columns: 2fr 1.6fr 1fr auto; gap: 10px; align-items: end; }
.banall__field { display: grid; gap: 4px; font-size: .78rem; color: var(--faint); min-width: 0; }
.banall__field input, .banall__field select { appearance: none; height: 38px; padding: 0 .7rem; border-radius: 9px; border: 1px solid var(--line); background-color: var(--bg-2); color: var(--fg); font: .88rem var(--font); min-width: 0; width: 100%; }
.banall__field select { padding-right: 1.8rem; background: var(--bg-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238390a5' stroke-width='1.6' fill='none'/%3E%3C/svg%3E") no-repeat right .6rem center / 10px; text-overflow: ellipsis; }
.banall__field input:focus, .banall__field select:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(245,165,36,.15); }
.banall__btns { display: flex; gap: 8px; flex-wrap: wrap; }
.banall__confirm { margin-top: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(248,113,113,.45); background: rgba(248,113,113,.06); }
.banall__confirm p { margin: 0 0 10px; }
.banall__list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.banall__list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "ico game state" "ico text text"; column-gap: 10px; row-gap: 2px; align-items: center; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line-soft); background: rgba(0,0,0,.15); animation: lineIn .25s var(--ease); }
.banall__list .lib__ico { grid-area: ico; }
.banall__game { grid-area: game; font-weight: 600; font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.banall__state { grid-area: state; font: 700 .68rem var(--mono); text-transform: uppercase; padding: .15rem .45rem; border-radius: 6px; color: var(--faint); background: rgba(255,255,255,.05); }
.banall__text { grid-area: text; font-size: .78rem; color: var(--dim); }
.banall__list .st-good { border-color: rgba(52,211,153,.35); }
.banall__list .st-good .banall__state { color: var(--good); background: rgba(52,211,153,.1); }
.banall__list .st-warn .banall__state, .banall__list .st-wait .banall__state { color: var(--accent); background: rgba(245,165,36,.12); }
.banall__list .st-bad .banall__state { color: var(--bad); background: rgba(248,113,113,.12); }
.banall__note { margin: 12px 0 0; }
@media (max-width: 1020px) { .banall__form { grid-template-columns: 1fr 1fr; } .banall__list { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .banall__form { grid-template-columns: 1fr; } }

/* ---------- ClanStop global bans, stats page, leaderboard search ---------- */
.ffrules { margin-top: 20px; }
.ffrules .panel__head select { appearance: none; height: 34px; padding: 0 1.8rem 0 .7rem; border-radius: 9px; border: 1px solid var(--line); color: var(--fg); font: .86rem var(--font);
  background: var(--bg-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238390a5' stroke-width='1.6' fill='none'/%3E%3C/svg%3E") no-repeat right .6rem center / 10px; }
.ffrules__scroll { position: relative; overflow-x: auto; border: 1px solid var(--line-soft); border-radius: 12px; }
.ffrules__table { min-width: 640px; }
.ffrules__table td b { display: block; font-size: .88rem; }
.ffrules__common { font: .66rem var(--mono); color: var(--faint); text-transform: uppercase; letter-spacing: .06em; }
.ffrules__note { margin: 10px 0 0; }
.cs__gb { margin: 12px 0 0; display: grid; gap: 6px; }
.cs__gb div { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .84rem; }
.cs__gb dt { width: 110px; color: var(--faint); flex: none; }
.cs__gb dd { margin: 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cs__ok { color: var(--good); font-weight: 600; }
.lb__find { display: block; margin-bottom: 10px; }
.lb__find input { width: 100%; height: 36px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line); background: var(--bg-2); color: var(--fg); font: .88rem var(--font); }
.lb__find input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(245,165,36,.15); }
.lb__list li.lb__none { display: block; text-align: center; }

/* ---------- game pages and the RCON tool page ---------- */
body.page { background: radial-gradient(900px 600px at 85% -10%, rgba(245,165,36,.12), transparent 60%), var(--bg); }
.page-hero { --c: var(--accent); position: relative; padding: calc(var(--nav-h, 106px) + 44px) 0 56px; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: -20% -10% auto 40%; height: 520px; background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 22%, transparent), transparent); pointer-events: none; z-index: -1; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: .6rem 0 1rem; max-width: 18em; }
.page-hero .lead { max-width: 44em; }
.page-hero__top { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.page-hero__top .game__badge { margin-left: 0; }
.page-hero__ico { width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; font-weight: 700; color: #0b1017; box-shadow: 0 10px 30px -8px var(--c); }
.page-hero__note { max-width: 44em; padding: 10px 14px; border-radius: 12px; border-left: 3px solid var(--accent); background: rgba(245,165,36,.07); color: var(--fg); font-size: .92rem; margin: -1rem 0 1.6rem; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: .85rem; color: var(--faint); }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--faint); }
.crumbs a { color: var(--dim); }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }
.crumbs [aria-current] { color: var(--fg); }
.h-sm { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-bottom: 18px; }
.facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.facts div { padding: 16px 18px; border-radius: var(--radius); border: 1px solid var(--line-soft); background: rgba(18,26,38,.7); }
.facts dt { font: 600 .72rem var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin-bottom: 6px; }
.facts dd { margin: 0; color: var(--fg); font-size: .95rem; }
.feat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.feat { padding: 22px; border-radius: var(--radius-lg); border: 1px solid var(--line-soft); background: linear-gradient(180deg, rgba(23,33,49,.75), rgba(15,22,32,.6)); }
.feat h3 { font-size: 1.08rem; margin-bottom: .5rem; }
.feat p { margin: 0; color: var(--dim); font-size: .95rem; }
.prose { max-width: 860px; }
.prose h2 { margin-bottom: 1rem; }
.prose h3 { margin: 1.6rem 0 .5rem; font-size: 1.15rem; }
.prose p { color: var(--dim); font-size: 1.04rem; }
.prose a:not(.btn) { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }   /* text links only: buttons keep their own colours */
.prose .note { font-size: .9rem; color: var(--faint); }
.table-scroll { position: relative; overflow-x: auto; border: 1px solid var(--line-soft); border-radius: 12px; margin: 1rem 0; }
.table-scroll .ftable { min-width: 560px; }
.table-scroll th a { color: var(--cyan); font-weight: 600; text-decoration: none; }
.table-scroll th a:hover { text-decoration: underline; }
.ftable tbody th { text-align: left; padding: 10px 12px; border-top: 1px solid var(--line-soft); font: inherit; text-transform: none; letter-spacing: 0; background: none; color: var(--fg); }
.every { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.every li { padding: 16px 18px; border-radius: var(--radius); border: 1px solid var(--line-soft); background: rgba(18,26,38,.6); display: grid; gap: 4px; }
.every a { color: var(--fg); }
.every a:hover b { color: var(--accent); text-decoration: underline; }
.every span { color: var(--dim); font-size: .9rem; }
.related { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.related--big { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.rel { --c: var(--accent); display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line-soft); background: rgba(18,26,38,.7); transition: border-color .2s, transform .2s var(--ease); }
.rel:hover { border-color: color-mix(in srgb, var(--c) 55%, var(--line)); transform: translateY(-2px); }
.rel b { display: block; font-size: .95rem; }
.rel small { display: block; color: var(--faint); font-size: .8rem; }
.related--big .rel { align-items: flex-start; }
.rel--all { border-style: dashed; }
.page-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 32px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: linear-gradient(135deg, rgba(245,165,36,.1), rgba(45,217,218,.06)); }
.page-cta h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: .4rem; }
.page-cta p { margin: 0; color: var(--dim); max-width: 40em; }
.footer__cols { display: grid; grid-template-columns: 1.3fr 2fr 1fr; gap: 32px; margin-bottom: 24px; }
.footer__about p { color: var(--dim); font-size: .9rem; margin: .8rem 0 0; max-width: 24em; }
.footer__col h2 { font: 600 .74rem var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--faint); margin: 0 0 10px; }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer__col:nth-child(2) ul { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; }
.footer__col a { color: var(--dim); font-size: .9rem; }
.footer__col a:hover { color: var(--accent); text-decoration: underline; }
.footer__legal { display: block; color: var(--faint); border-top: 1px solid var(--line-soft); padding-top: 18px; }
@media (max-width: 860px) { .footer__cols { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .page-hero { padding-top: calc(var(--nav-h, 106px) + 28px); } .footer__col:nth-child(2) ul { grid-template-columns: 1fr; } .page-cta { padding: 24px 18px; } }

/* ---------- accessibility helpers ---------- */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 16px; top: -100px; z-index: 200; padding: 12px 18px; border-radius: 10px; background: var(--accent); color: var(--accent-fg); font-weight: 700; transition: top .15s; }
.skip:focus { top: 12px; outline: 3px solid var(--fg); outline-offset: 2px; }
main:focus { outline: none; }
.motion-btn { flex: none; border: 1px solid rgba(245,165,36,.45); background: rgba(0,0,0,.25); color: var(--fg); border-radius: 7px; padding: .2rem .55rem; font-size: .76rem; }
.motion-btn:hover { border-color: var(--accent); }
.motion-btn[aria-pressed="true"] { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
html.motion-off *, html.motion-off *::before, html.motion-off *::after { animation-play-state: paused !important; scroll-behavior: auto !important; }
html.motion-off .reveal { opacity: 1; transform: none; transition: none; }
.noscript-games { margin: 0; padding-left: 1.2rem; color: var(--dim); display: grid; gap: 6px; }
.noscript-games b { color: var(--fg); }

@keyframes grow { from { transform: scaleY(0); } }
@keyframes hit { 0% { box-shadow: 0 0 0 0 rgba(245,165,36,.7); border-color: var(--accent); } 100% { box-shadow: 0 0 0 10px rgba(245,165,36,0); } }

/* ---------- keyframes ---------- */
@keyframes pulse { 50% { opacity: .45; } }
@keyframes shimmer { to { background-position: 100% 0; } }
@keyframes bob { 50% { transform: translateY(-10px); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes packet { from { left: -10%; } to { left: 110%; } }
@keyframes lineIn { from { opacity: 0; transform: translateX(-6px); } }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .hero__grid, .split { grid-template-columns: 1fr; gap: 48px; }
  .split--rev .split__copy { order: 0; }
  .tilt { transform: none; }
  .float { display: none; }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile--wide { grid-column: span 2; grid-template-columns: 1fr; }
  .tile--wide .diagram { grid-column: 1; grid-row: auto; }
  .ff, .bans, .cs, .road { grid-template-columns: 1fr; }
  .trig__grid { grid-template-columns: 1fr 1fr; }
  .howto { grid-template-columns: repeat(3, 1fr); }
  .safety { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1280px) {
  .nav__links {
    position: fixed; top: var(--nav-h, 106px); left: 0; right: 0; flex-direction: column; gap: 2px; padding: 12px 16px 20px;
    background: rgba(11,16,23,.97); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line-soft);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: all .25s var(--ease);
  }
  .nav__links.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__links a { padding: .8rem 1rem; }
  .nav__burger { display: flex; margin-left: .25rem; }
  .nav__cta { display: none; }
  .lang { margin-left: auto; }
}
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hero { padding-top: 150px; }
  .betabar__more { display: none; }
  .betabar { font-size: .78rem; }
  .betabar__inner { flex-wrap: wrap; row-gap: 4px; }
  .betabar__inner > span:nth-child(2) { flex: 1 1 calc(100% - 60px); }
  .betabar a { margin-left: auto; }
  .section { padding: 80px 0; }
  .app { grid-template-columns: 1fr; }
  .app__side { border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .lib { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .app__add { margin-top: 8px; }
  .float { display: none; }
  .games { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .tile--wide { grid-column: span 1; }
  .diagram { grid-template-columns: 1fr 26px 1fr; }
  .node { font-size: .76rem; padding: 10px; }
  .timeline li { grid-template-columns: 1fr; gap: 2px; }
  .term { height: 420px; }
  .cta { padding: 52px 20px; }
  .matrix th:nth-child(3), .matrix td:nth-child(3) { display: none; }
  .footer__links { margin-left: 0; }
  .btn--lg { width: 100%; }
  .howto, .safety { grid-template-columns: 1fr; }
  .banform { grid-template-columns: 1fr 1fr; }
  .banform input { grid-column: 1 / -1; }
  .lists__row > * { padding: 8px 5px; }
  .sentence select { max-width: 100%; }
  .profile__grid { grid-template-columns: 1fr 1fr; }
  .trig__grid, .sent, .pf-cols { grid-template-columns: 1fr; }
  .lb__list li { grid-template-columns: 30px minmax(0, 1fr) auto; }
  .lb__bar { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* download page: the button waits for the beta notice; the checksum command */
.btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none !important; box-shadow: none; }
pre.code { margin: 12px 0; padding: 12px 16px; border-radius: var(--radius); border: 1px solid var(--line-soft); background: var(--bg-2); overflow-x: auto; font-size: .85rem; }
.beta-box__ack.is-needed { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 8px; }
/* download page: the step-by-step screenshots */
.shots { list-style: none; margin: 14px 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: start; }
@media (max-width: 860px) { .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.shots figure { margin: 0; padding: 10px; border-radius: var(--radius); border: 1px solid var(--line-soft); background: rgba(18,26,38,.6); }
.shots img { display: block; width: 100%; height: auto; border-radius: 8px; }
.shots figcaption { margin-top: 8px; font-size: .88rem; color: var(--dim); }
/* jump links (#keep, #edge-steps…) land below the sticky menu */
#keep, #edge-steps, #download, #verify, #faq { scroll-margin-top: calc(var(--nav-h, 110px) + 16px); }
/* download page: the "keep the file" heads-up, inside the download box above the button */
.keep { margin: 18px 0; padding: 18px 20px; border-radius: var(--radius); border: 1px solid rgba(245,165,36,.45); background: rgba(245,165,36,.07); text-align: left; }
.keep h3 { margin: 0 0 6px; font-size: 1.1rem; }
.keep p { margin: 0; color: var(--dim); }
.keep__tag { display: inline-block; margin-right: 8px; padding: 2px 8px; border-radius: 999px; background: var(--accent); color: #111; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; vertical-align: middle; }
.keep__others { margin: 6px 0 0; padding-left: 18px; color: var(--dim); font-size: .92rem; }
.keep__others li { margin: 3px 0; }

/* ---------------- language menu (header) ---------------- */
.lang { position: relative; flex: none; }
.nav__cta { white-space: nowrap; flex: none; }
.lang > summary { list-style: none; cursor: pointer; padding: .35rem .6rem; border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px; font: 500 .8rem/1 "JetBrains Mono", ui-monospace, monospace; color: inherit; white-space: nowrap; }
.lang > summary::-webkit-details-marker { display: none; }
.lang > summary:hover, .lang[open] > summary { border-color: rgba(255, 255, 255, .35); }
.lang__list { position: absolute; right: 0; top: calc(100% + .4rem); z-index: 60; min-width: 12rem; margin: 0;
  padding: .35rem; list-style: none; background: #0f1621; border: 1px solid rgba(255, 255, 255, .12); border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .45); max-height: 70vh; overflow: auto; }
.lang__list a { display: block; padding: .45rem .65rem; border-radius: 6px; color: inherit; text-decoration: none; }
.lang__list a:hover, .lang__list a:focus-visible { background: rgba(255, 255, 255, .07); }
.lang__list a[aria-current="true"] { font-weight: 700; }

/* guides (/guides/, Guides.php) */
.guide__meta { color: var(--faint); font-size: .9rem; margin-top: .5rem; }
.guide__toc { border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.25rem; margin: 0 0 2rem; background: rgba(255, 255, 255, .03); }
.guide__toc ol { margin: .5rem 0 0; }
.guide ol > li, .guide ul > li { margin: .45rem 0; }
.guide__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2.5rem; }
.guide__list { list-style: none; padding: 0; }
.guide__list li { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
.guide__list small { display: block; color: var(--faint); margin: .25rem 0; }
.guide__list p { margin: .25rem 0 0; }
.home-guides { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 10px 28px; }
.home-guides li { border-bottom: 1px solid var(--line); padding: .7rem 0; }
.home-guides small { display: block; color: var(--faint); font-size: .8rem; margin-bottom: .15rem; }
.home-guides a { color: inherit; text-decoration: none; font-weight: 600; }
.home-guides a:hover, .home-guides a:focus-visible { color: var(--accent); text-decoration: underline; }
.link-arrow { color: var(--accent); font-weight: 600; text-decoration: none; }
.link-arrow:hover, .link-arrow:focus-visible { text-decoration: underline; text-underline-offset: 3px; }

/* a game page's guides: a gold band that breaks the dark page rhythm so it isn't skipped */
.gband { position: relative; padding: 72px 0; color: var(--accent-fg); background: linear-gradient(135deg, var(--accent-2) 0%, var(--accent) 55%, #e08a0b 100%); overflow: hidden; }
.gband::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(26, 18, 4, .05) 0 2px, transparent 2px 14px); pointer-events: none; }
.gband__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 48px; align-items: start; }
.gband__tag { display: inline-block; font: 700 .76rem var(--mono); letter-spacing: .18em; text-transform: uppercase; padding: .35rem .7rem; border-radius: 999px; background: var(--accent-fg); color: var(--accent-2); }
.gband h2 { color: var(--accent-fg); font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1.05; margin: 1rem 0 .8rem; }
.gband__intro p { color: rgba(26, 18, 4, .78); font-size: 1.08rem; margin: 0; max-width: 26em; }
.gband__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.gband__list a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 18px 22px; border-radius: var(--radius); background: rgba(26, 18, 4, .9); color: var(--fg); text-decoration: none; transition: transform .2s var(--ease), background .2s var(--ease); }
.gband__list a:hover, .gband__list a:focus-visible { background: #000; transform: translateX(6px); }
.gband__list a:focus-visible { outline: 3px solid var(--accent-fg); outline-offset: 3px; }
.gband__n { font: 700 1.5rem var(--mono); color: var(--accent); min-width: 2.2ch; }
.gband__text { display: grid; gap: 4px; }
.gband__text b { font-size: 1.05rem; line-height: 1.3; }
.gband__text small { color: var(--dim); font-size: .88rem; line-height: 1.45; }
.gband__go { font: 600 .82rem var(--mono); color: var(--accent-2); white-space: nowrap; }
.gband__list a:hover .gband__go span, .gband__list a:focus-visible .gband__go span { display: inline-block; transform: translateX(4px); }
@media (max-width: 860px) {
  .gband { padding: 56px 0; }
  .gband__inner { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .gband__list a { grid-template-columns: auto minmax(0, 1fr); padding: 16px; }
  .gband__go { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) { .gband__list a, .gband__list a:hover { transition: none; transform: none; } }
