/* Scout's site. The app's own look: night background, soul cyan for us, rose for them, amber for «Про»;
   Unbounded for headings, Onest for text. Layout: a centred column, account and admin pages with a side menu. */
:root {
  color-scheme: dark;
  --bg: #0f1015; --bg-2: #15161d; --bg-3: #1b1d26; --edge: rgba(255, 255, 255, 0.07); --edge-2: rgba(255, 255, 255, 0.13);
  --text: #eef0f4; --muted: #949aaa; --faint: #6f7585;
  --ours: #3ee0cf; --ours-2: rgba(62, 224, 207, 0.13); --ours-ink: #061412;
  --theirs: #ff5c7a; --theirs-2: rgba(255, 92, 122, 0.13);
  --pro: #ffc56b; --pro-2: rgba(255, 197, 107, 0.13); --good: #59e39a;
  --ui: "Onest", "Segoe UI", system-ui, sans-serif; --display: "Unbounded", "Onest", sans-serif;
  --r: 14px; --r-l: 20px; --pill: 999px;
  --gutter-l: max(20px, env(safe-area-inset-left, 0px)); --gutter-r: max(20px, env(safe-area-inset-right, 0px));
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column; color: var(--text);
  font: 400 16px/1.6 var(--ui); -webkit-font-smoothing: antialiased; background: var(--bg);
}
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(900px 560px at 6% -12%, rgba(62, 224, 207, 0.11), transparent 62%),
              radial-gradient(820px 520px at 100% -8%, rgba(255, 92, 122, 0.08), transparent 60%); }
a { color: var(--ours); text-underline-offset: 3px; text-decoration-color: rgba(62, 224, 207, 0.4); }
a:hover { text-decoration-color: var(--ours); }
:focus-visible { outline: 2px solid var(--ours); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; letter-spacing: -0.01em; text-wrap: balance; margin: 0 0 12px; }
h1 { font-size: clamp(28px, 5vw, 46px); line-height: 1.12; }
h2 { font-size: clamp(21px, 3vw, 28px); line-height: 1.2; }
h3 { font-size: 17px; line-height: 1.3; }
h4 { font-size: 16px; margin: 0 0 6px; }
p { margin: 0 0 12px; }
small { color: var(--muted); font-size: 0.82em; }
.muted { color: var(--muted); } .bad { color: var(--theirs); }
.fine { color: var(--faint); font-size: 14px; }
.big { font-size: 19px; font-weight: 600; margin: 4px 0 8px; }

/* ---- the frame ---- */
.bar { max-width: 1120px; margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.top { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(14px); background: rgba(15, 16, 21, 0.78);
  border-bottom: 1px solid var(--edge); }
.top .bar { display: flex; align-items: center; gap: 22px; min-height: 64px; flex-wrap: wrap; padding-block: 8px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.brand b { display: block; font: 500 16px/1.1 var(--display); }
.brand small { font-size: 12px; }
nav.pub { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
nav.pub a, nav.acct a { color: var(--muted); text-decoration: none; padding: 7px 11px; border-radius: 10px; font-weight: 500; }
nav.pub a:hover, nav.acct a:hover, nav.pub a[aria-current] { color: var(--text); background: var(--bg-3); }
nav.acct { display: flex; gap: 6px; align-items: center; }
nav.acct a.navbtn { color: var(--text); border: 1px solid var(--edge-2); display: inline-flex; align-items: center; gap: 8px;
  max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ava { width: 22px; height: 22px; border-radius: 50%; flex: none; }
nav.acct a.navbtn.primary { background: var(--ours); color: var(--ours-ink); border-color: transparent; }
main { flex: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding: 40px var(--gutter-r) 72px var(--gutter-l); }
footer { border-top: 1px solid var(--edge); color: var(--faint); font-size: 13.5px; }
footer .bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 22px; }
footer .flinks { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--muted); text-decoration: none; } footer a:hover { color: var(--text); }

/* ---- buttons, forms, notes ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 10px 18px;
  border-radius: 12px; border: 1px solid var(--edge-2); background: var(--bg-3); color: var(--text); font: 600 15px/1.2 var(--ui);
  text-decoration: none; cursor: pointer; transition: background 0.15s, border-color 0.15s, transform 0.1s; }
.btn:hover { background: #23262f; border-color: rgba(255, 255, 255, 0.22); }
.btn:active { transform: scale(0.985); }
.btn.primary { background: var(--ours); color: var(--ours-ink); border-color: transparent; }
.btn.primary:hover { background: #66ecdd; }
.btn.big { min-height: 52px; padding: 12px 24px; font-size: 16px; }
.btn.steam { width: 100%; background: #1b2838; border-color: #2a475e; color: #e5eef6; }
.btn.steam:hover { background: #22344a; }
.btn.steam svg { width: 20px; height: 20px; }
.btn.danger { border-color: rgba(255, 92, 122, 0.5); color: #ffb6c4; background: transparent; }
.btn.danger:hover { background: var(--theirs-2); }
.btn.ghost { background: transparent; width: 100%; }
.row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.stack { display: grid; gap: 8px; margin-bottom: 12px; }
.form { display: grid; gap: 14px; }
.form.inline { display: flex; gap: 10px; margin: 0 0 18px; }
.form.inline input { flex: 1; min-width: 0; }
label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); font-weight: 500; }
input, select, textarea { width: 100%; min-height: 46px; padding: 10px 13px; border-radius: 11px; border: 1px solid var(--edge-2);
  background: rgba(0, 0, 0, 0.28); color: var(--text); font: 400 16px/1.4 var(--ui); }
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ours); box-shadow: 0 0 0 3px var(--ours-2); }
.note { padding: 12px 15px; border-radius: 12px; margin-bottom: 16px; background: var(--theirs-2);
  border: 1px solid rgba(255, 92, 122, 0.35); color: #ffd5de; }
.note.ok { background: var(--ours-2); border-color: rgba(62, 224, 207, 0.35); color: #cbfbf5; }
.or { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--faint); font-size: 13px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--edge); }
.links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 16px; font-size: 14.5px; }

/* ---- blocks ---- */
.narrow { max-width: 480px; margin-left: auto; margin-right: auto; }
.card { background: var(--bg-2); border: 1px solid var(--edge); border-radius: var(--r-l); padding: 22px; margin-bottom: 16px; }
.card h3 { margin-bottom: 10px; }
.card.danger { border-color: rgba(255, 92, 122, 0.25); }
.auth { padding: 30px 28px; }
.auth h1 { font-size: 28px; margin-bottom: 18px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.grid2 .card { margin-bottom: 0; }
.grid2 + .card, .grid2 + .grid2 { margin-top: 16px; }
.pagehead { max-width: 720px; margin-bottom: 36px; }
.lead { color: var(--muted); font-size: 18px; max-width: 62ch; }
.eyebrow { color: var(--ours); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; font-size: 13px; margin-bottom: 14px; }
.tag { display: inline-block; font: 600 11.5px/1 var(--ui); letter-spacing: 0.06em; text-transform: uppercase; padding: 6px 9px;
  border-radius: var(--pill); background: var(--bg-3); color: var(--muted); }
.tag.builds { background: var(--ours-2); color: var(--ours); }
.tag.pro { background: var(--pro-2); color: var(--pro); }

/* home */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: 24px 0 56px; }
.hero h1 { font-size: clamp(32px, 5.4vw, 56px); }
.shot { margin: 0; border-radius: var(--r-l); overflow: hidden; border: 1px solid var(--edge-2); background: var(--bg-2);
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(62, 224, 207, 0.08); }
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption { padding: 10px 14px; color: var(--faint); font-size: 13px; border-top: 1px solid var(--edge); }
.shot.noshot img { display: none; }
.shot.noshot { min-height: 220px; display: grid; place-items: end start; }
.glyph { position: relative; display: grid; place-items: center; }
.glyph::before { content: ""; position: absolute; inset: 8%; border-radius: 50%; filter: blur(60px);
  background: radial-gradient(circle, rgba(62, 224, 207, 0.28), rgba(255, 92, 122, 0.12) 60%, transparent 72%); }
.glyph img { position: relative; width: min(420px, 80%); height: auto; filter: brightness(1.9) saturate(1.15) drop-shadow(0 30px 60px rgba(0, 0, 0, 0.6)); }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 56px; }
.feat { display: flex; flex-direction: column; gap: 4px; padding: 22px; border-radius: var(--r-l); background: var(--bg-2);
  border: 1px solid var(--edge); color: var(--text); text-decoration: none; transition: border-color 0.15s, transform 0.15s; }
.feat:hover { border-color: var(--edge-2); transform: translateY(-2px); }
.feat p { color: var(--muted); flex: 1; }
.feat .tag { align-self: flex-start; }
.fair { padding: 28px; border-radius: var(--r-l); border: 1px solid rgba(62, 224, 207, 0.22);
  background: linear-gradient(135deg, rgba(62, 224, 207, 0.07), transparent 60%), var(--bg-2); }
.fair p { color: var(--muted); max-width: 70ch; }

/* features */
.fsec { padding: 28px 0; border-top: 1px solid var(--edge); scroll-margin-top: 80px; }
.fhead { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.fhead h2 { margin: 0; }
.items { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.item { padding: 18px; border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--edge); }
.item p { color: var(--muted); margin: 0; font-size: 15px; }
.cta { text-align: center; padding: 48px 0 0; }
.cta .row { justify-content: center; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 32px; }
.plan { position: relative; display: flex; flex-direction: column; padding: 26px; border-radius: var(--r-l);
  background: var(--bg-2); border: 1px solid var(--edge); }
.plan p { color: var(--muted); flex: 1; }
.plan.best { border-color: rgba(255, 197, 107, 0.45); background: linear-gradient(160deg, rgba(255, 197, 107, 0.07), transparent 55%), var(--bg-2); }
.plan.best h3 { color: var(--pro); }
.ribbon { position: absolute; top: -11px; right: 18px; font: 600 11px/1 var(--ui); letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--pro); color: #251a05; padding: 6px 9px; border-radius: var(--pill); }
.price { font: 500 32px/1.1 var(--display); margin: 6px 0 14px; }
.price small { font: 400 14px var(--ui); }
.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--edge); vertical-align: top; }
th { color: var(--muted); font-weight: 500; font-size: 14px; }
.compare td.y { color: var(--good); font-weight: 700; text-align: center; }
.compare td.n { color: var(--faint); text-align: center; }
.compare th:not(:first-child) { text-align: center; }
.qa { margin-top: 24px; }
details { border-bottom: 1px solid var(--edge); padding: 6px 0; scroll-margin-top: 80px; }
summary { cursor: pointer; padding: 12px 0; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--ours); font-weight: 400; font-size: 22px; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { color: var(--muted); }
.steps { display: grid; gap: 14px; padding-left: 22px; margin: 26px 0; }
.steps li::marker { color: var(--ours); font-weight: 700; }
.prose h2 { font-size: 20px; margin-top: 26px; }
.prose li { margin-bottom: 6px; color: var(--muted); }

/* account and admin */
.acctwrap { display: grid; grid-template-columns: 230px 1fr; gap: 28px; align-items: start; }
.side { position: sticky; top: 84px; display: grid; gap: 14px; }
.who { padding: 4px 6px; }
.who b { display: block; word-break: break-all; }
.tabs { display: grid; gap: 2px; }
.tabs a { color: var(--muted); text-decoration: none; padding: 9px 12px; border-radius: 10px; font-weight: 500; }
.tabs a:hover { background: var(--bg-3); color: var(--text); }
.tabs a[aria-current] { background: var(--ours-2); color: var(--ours); }
.content { min-width: 0; }
.content h1 { font-size: 28px; margin-bottom: 20px; }
.feats { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.feats li { display: flex; justify-content: space-between; gap: 12px; }
.on { color: var(--good); font-weight: 600; } .off { color: var(--faint); }
.plain { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 6px; }
.ref { display: grid; gap: 10px; margin-bottom: 10px; }
.ref code { font: 600 24px/1 ui-monospace, Consolas, monospace; letter-spacing: 0.12em; color: var(--ours); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 0 0 20px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; min-width: 0; word-break: break-word; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stats div { background: var(--bg-2); border: 1px solid var(--edge); border-radius: var(--r); padding: 14px 16px; }
.stats b { display: block; font: 500 28px/1.1 var(--display); font-variant-numeric: tabular-nums; }
.stats span { color: var(--muted); font-size: 13.5px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-bottom: 36px; }
  .glyph img { width: min(240px, 60%); }
  .three, .plans { grid-template-columns: 1fr; }
  .acctwrap { grid-template-columns: 1fr; gap: 16px; }
  .side { position: static; }
  .tabs { display: flex; overflow-x: auto; gap: 4px; padding-bottom: 4px; }
  .tabs a { white-space: nowrap; }
  .btn.ghost { width: auto; }
}
@media (max-width: 600px) {
  main { padding-top: 28px; }
  nav.pub { order: 3; flex: 1 0 100%; min-width: 0; flex-wrap: nowrap; overflow-x: auto; margin: 0 -6px; }
  nav.pub a { white-space: nowrap; }
  .top .bar { gap: 10px; }
  nav.acct { margin-left: auto; }
  .form.inline { flex-direction: column; }
  .auth { padding: 22px 18px; }
  .kv { grid-template-columns: 1fr; gap: 2px; } .kv dd { margin-bottom: 8px; }
}

/* a shared build */
.bhead { display: flex; align-items: center; gap: 20px; margin-bottom: 18px; }
.hero-img { width: 88px; height: 88px; border-radius: 18px; object-fit: cover; background: var(--bg-3); border: 1px solid var(--edge-2); }
.bhead h1 { margin: 0; }
.bhead .eyebrow { margin-bottom: 6px; }
.phase { padding: 18px 0; border-top: 1px solid var(--edge); }
.phead { display: flex; align-items: baseline; gap: 14px; margin-bottom: 12px; }
.phead h2 { margin: 0; font-size: 20px; }
.items-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.it { display: grid; justify-items: center; gap: 4px; padding: 12px 8px 10px; border-radius: 14px; text-align: center;
  background: var(--bg-2); border: 1px solid var(--edge); border-top: 3px solid var(--edge-2); min-width: 0; }
.it.w { border-top-color: #e3a54b; } .it.v { border-top-color: #59c76a; } .it.s { border-top-color: #b07cf0; }
.it img { width: 56px; height: 56px; object-fit: contain; }
.it b { font-size: 13px; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.it small { font-size: 12px; color: var(--faint); }
.it.unk { color: var(--faint); place-content: center; min-height: 100px; }
.optlabel { margin: 14px 0 8px; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; }

/* my ratings of players */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--edge-2); color: var(--muted); text-decoration: none; font-size: 14px; }
.chip.on, .chip:hover { color: var(--text); border-color: var(--ours); background: var(--ours-2); }
.plist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.pl { background: var(--bg-2); border: 1px solid var(--edge); border-radius: 14px; padding: 12px 14px; }
.plhead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 8px; }
.plhead b { font-size: 16px; }
.stars { color: var(--pro); letter-spacing: 0.06em; }
.plform { margin: 0; }
.plform select { width: auto; min-width: 84px; }

/* admin charts */
.chart svg { width: 100%; height: 120px; display: block; }
.chart .bar { fill: var(--ours); } .chart .bar.zero { fill: var(--edge-2); }
.chead { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; align-items: baseline; }
.caxis { display: flex; justify-content: space-between; color: var(--faint); font-size: 12px; margin-top: 6px; }
