:root {
  --bg: #0f1218; --panel: #171b24; --line: #262c39; --text: #e6e8ee; --muted: #9aa3b5;
  --accent: #d4af37; --link: #7fb4ff; --radius: 12px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); line-height: 1.2; margin: 28px 0 12px; }
h2 { font-size: 1.3rem; margin: 28px 0 12px; }
h3 { margin: 8px 0; }
.lead { color: var(--muted); font-size: 1.08rem; max-width: 820px; }
.muted { color: var(--muted); font-size: .92rem; }

.top { position: sticky; top: 0; z-index: 10; background: rgba(15,18,24,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 16px; min-height: 56px; flex-wrap: wrap; }
.brand { font-weight: 700; color: var(--text); font-size: 1.1rem; }
.brand span { color: var(--accent); }
nav { display: flex; gap: 4px 14px; flex-wrap: wrap; font-size: .95rem; }
nav a { color: var(--muted); }
nav a[aria-current] { color: var(--text); }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin: 16px 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin: 20px 0; }
.stat { background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--c); border-radius: var(--radius); padding: 12px; color: var(--text); display: flex; flex-direction: column; }
.stat b { font-size: 1.6rem; }
.stat span { color: var(--muted); }
.badge { display: inline-block; padding: 1px 10px; border-radius: 999px; border: 1px solid var(--c); color: var(--c); font-size: .85rem; white-space: nowrap; }
.tldr ul { margin: 0; padding-left: 20px; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0; }
input, select, button { font: inherit; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; }
input[type=search] { flex: 1 1 220px; }
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #1c2130; font-size: .88rem; color: var(--muted); position: sticky; top: 0; }
.list tr:hover td { background: #1a1f2b; }
td.mon { color: var(--muted); font-size: .92rem; }
.bonus td:not(:first-child), .bonus th:not(:first-child) { text-align: center; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }

.crumbs { color: var(--muted); font-size: .9rem; margin-top: 20px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.facts span { display: block; color: var(--muted); font-size: .85rem; }
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-block; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; }
.btn { display: inline-block; background: var(--accent); color: #1a1406; border: 0; border-radius: 8px; padding: 9px 16px; font-weight: 600; cursor: pointer; }
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); font-weight: 500; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 16px; margin: 8px 0; }
.faq summary { cursor: pointer; font-weight: 600; }

.calc { display: grid; grid-template-columns: 300px 1fr; gap: 20px; align-items: start; }
.totals { position: sticky; top: 72px; margin: 0; }
.totals h2 { margin-top: 4px; }
.totals td { padding: 5px 4px; font-size: .9rem; }
.row { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.tcard { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--c); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 4px; }
.tcard small { color: var(--muted); }
.tcard.own { background: #1b2230; }
.tcard.flash { outline: 2px solid var(--accent); }
.lv { display: flex; gap: 4px; }
.lv button { flex: 1; padding: 3px 0; font-size: .82rem; cursor: pointer; }
.lv button.on { background: var(--c); border-color: var(--c); color: #0f1218; font-weight: 700; }

.foot { border-top: 1px solid var(--line); margin-top: 48px; padding: 20px 0 32px; color: var(--muted); font-size: .88rem; }

@media (max-width: 760px) {
  .calc { grid-template-columns: 1fr; }
  .totals { position: static; }
  td.mon { min-width: 180px; }
  th, td { padding: 8px; }
}
.plan h2 { margin-top: 0; }
.zones { padding-left: 20px; } .zones li { margin: 6px 0; } .zones ul { margin: 6px 0; padding-left: 18px; }
.datastatus { margin: 12px 0; } .datastatus .ok { color: #4caf6a; }
.calc > * { min-width: 0; }
#goal { max-width: 100%; flex: 1 1 240px; } #faction { flex: 0 0 auto; }
.zones .muted { overflow-wrap: anywhere; }
