:root {
  --bg: #0f1012; --panel: #16181b; --panel2: #1c1f23; --line: #272b31; --text: #ebe8e2; --mute: #8e939c;
  --acc: #b8f04a; --up: #74d98e; --down: #ff7d6e; --warn: #f0c24a;
  font-family: ui-sans-serif, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.45; }
body { margin: 0 auto; max-width: 1180px; padding: 0 20px 60px; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--acc); }
.num, td.n, .tiles dd { font-variant-numeric: tabular-nums; }
.mute { color: var(--mute); }
.small { font-size: 12px; }
.up { color: var(--up); } .down { color: var(--down); }

.top { display: flex; align-items: center; gap: 22px; padding: 16px 0 10px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 9px; font: 700 15px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .18em; }
nav { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
nav a { padding: 6px 10px; border-radius: 6px; color: var(--mute); font-size: 14px; }
nav a.on { color: var(--text); background: var(--panel2); }
.status { color: var(--mute); font-size: 12.5px; margin: 10px 0 18px; }

.btn { display: inline-block; background: var(--acc); color: #10140a; font-weight: 650; border: 0; border-radius: 7px; padding: 10px 16px; cursor: pointer; font-size: 14px; }
.btn:hover { color: #10140a; filter: brightness(1.07); }
.btn.small { padding: 7px 12px; font-size: 13px; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.ghost:hover { color: var(--acc); border-color: var(--acc); }

h1 { font-size: 26px; line-height: 1.2; margin: 0 0 6px; letter-spacing: -.01em; }
h2 { font-size: 17px; margin: 30px 0 10px; }
.lede { color: var(--mute); margin: 0 0 18px; max-width: 70ch; }

.trophy { display: flex; gap: 16px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--acc); border-radius: 8px; padding: 14px 16px; margin: 0 0 20px; }
.trophy img { width: 54px; height: 81px; object-fit: cover; border-radius: 5px; background: var(--panel2); }
.trophy .k { font: 600 11px ui-monospace, Menlo, monospace; letter-spacing: .12em; color: var(--acc); text-transform: uppercase; }
.trophy .t { font-size: 19px; font-weight: 650; }

.bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 0 0 12px; }
.bar input[type=search], .bar select, .bar input[type=number], form input { background: var(--panel); border: 1px solid var(--line); color: var(--text); border-radius: 6px; padding: 8px 10px; font-size: 13.5px; font-family: inherit; }
.bar input[type=search] { min-width: 220px; flex: 1; max-width: 320px; }
.bar label { color: var(--mute); font-size: 12.5px; display: flex; align-items: center; gap: 6px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.seg button { white-space: nowrap; background: var(--panel); color: var(--mute); border: 0; padding: 8px 11px; font-size: 13px; cursor: pointer; font-family: inherit; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button.on { background: var(--panel2); color: var(--text); }
.lock::after { content: "PRO"; font: 700 9px ui-monospace, Menlo, monospace; letter-spacing: .08em; color: var(--acc); border: 1px solid #4b5f22; border-radius: 3px; padding: 1px 4px; margin-left: 6px; vertical-align: 1px; }

table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 11.5px; font-weight: 600; color: var(--mute); text-transform: uppercase; letter-spacing: .06em; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 9px 10px; border-bottom: 1px solid #1d2024; vertical-align: middle; }
th.n, td.n { text-align: right; }
tr.row:hover td { background: var(--panel); }
td.rk { color: var(--mute); width: 34px; font-variant-numeric: tabular-nums; }
.game { display: flex; gap: 12px; align-items: center; min-width: 0; }
.game img { width: 38px; height: 57px; object-fit: cover; border-radius: 4px; background: var(--panel2); flex: none; }
.game .ti { font-weight: 600; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 360px; }
.game .by { color: var(--mute); font-size: 12.5px; }
.tag { display: inline-block; font: 600 10px ui-monospace, Menlo, monospace; letter-spacing: .05em; border: 1px solid var(--line); border-radius: 3px; padding: 1px 5px; color: var(--mute); margin-left: 6px; text-transform: uppercase; }
.tag.hot { color: var(--warn); border-color: #5c4a1c; }
.tag.pc { color: var(--acc); border-color: #4b5f22; }
.spark polyline { stroke: var(--mute); }
.spark.up polyline { stroke: var(--up); } .spark.down polyline { stroke: var(--down); }
.sub { display: block; font-size: 12px; color: var(--mute); }
.more { display: block; margin: 16px auto; }
.avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: var(--panel2); flex: none; }

.gh { display: flex; gap: 20px; align-items: flex-start; margin: 8px 0 18px; }
.gh img.cover { width: 120px; height: 180px; object-fit: cover; border-radius: 8px; background: var(--panel2); flex: none; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin: 0 0 22px; }
.tiles div { background: var(--panel); padding: 12px 14px; box-shadow: 0 0 0 1px var(--line); }
.tiles dt { font-size: 11px; color: var(--mute); text-transform: uppercase; letter-spacing: .06em; }
.tiles dd { margin: 3px 0 0; font-size: 19px; font-weight: 650; }
.chart { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 14px; }
.chart svg { width: 100%; height: auto; display: block; }
.chart text { fill: var(--mute); font-size: 11px; font-family: inherit; }
.note { background: var(--panel); border: 1px dashed var(--line); border-radius: 8px; padding: 12px 14px; color: var(--mute); font-size: 13.5px; margin: 12px 0; }
.note b { color: var(--text); }

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 18px 0; }
.plan { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 20px; }
.plan.pro { border-color: #4b5f22; }
.plan h3 { margin: 0 0 4px; font-size: 16px; }
.price { font-size: 30px; font-weight: 700; letter-spacing: -.02em; }
.price small { font-size: 13px; color: var(--mute); font-weight: 500; }
.plan ul { margin: 14px 0 18px; padding: 0 0 0 18px; color: #c9c6bf; }
.plan li { margin: 5px 0; }
form.inline { display: flex; gap: 8px; flex-wrap: wrap; }
form.inline input { flex: 1; min-width: 180px; }
.hp { position: absolute; left: -9999px; }
.msg { font-size: 13px; margin-top: 8px; }

dialog { background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 12px; padding: 24px; max-width: 760px; width: calc(100% - 32px); }
dialog::backdrop { background: rgba(0, 0, 0, .65); }
dialog .x { float: right; background: none; border: 0; color: var(--mute); font-size: 22px; cursor: pointer; line-height: 1; }

footer { margin-top: 50px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--mute); font-size: 12.5px; }
footer a { text-decoration: underline; }
.prose { max-width: 70ch; } .prose p, .prose li { color: #c9c6bf; }

@media (max-width: 760px) {
  .top { gap: 10px; }
  .top .brand { flex: 1; }
  nav { order: 3; flex: 0 0 100%; flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
  .seg { max-width: 100%; overflow-x: auto; }
  td, th { padding-left: 6px; padding-right: 6px; }
  .hide-s { display: none; }
  .game .ti { max-width: 46vw; }
  .plans { grid-template-columns: 1fr; }
  .gh img.cover { width: 84px; height: 126px; }
  h1 { font-size: 22px; }
}
