:root {
  --bg: #12161c; --panel: #1b2129; --line: #2c3440; --text: #e6e9ee; --muted: #8d97a5;
  --accent: #5aa9ff; --ok: #4fc27a; --no: #e2a03f; --bad: #e5605a; --wish: #b583ff;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--accent); }
header, main, footer { max-width: 1150px; margin: 0 auto; padding: 0 16px; }
header { padding-top: 24px; position: relative; }
.lang { position: absolute; top: 24px; right: 16px; font-size: 13px; }
.lang a { color: var(--muted); text-decoration: none; padding: 2px 6px; border: 1px solid transparent; border-radius: 4px; }
.lang a.active { color: inherit; font-weight: 600; border-color: var(--line); }
header h1 { padding-right: 80px; }
h1 { margin: 0; font-size: 26px; }
h1 a { color: inherit; text-decoration: none; }
.sub, .muted { color: var(--muted); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin: 16px 0; }
.steam-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.steam-head h2 { margin: 0; font-size: 18px; }
details summary { cursor: pointer; color: var(--accent); margin-top: 8px; }
textarea { width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 6px; padding: 8px; font: 13px monospace; }
.row { display: flex; gap: 8px; margin-top: 8px; }
button { background: var(--accent); color: #08121f; border: 0; border-radius: 6px; padding: 7px 14px; font-weight: 600; cursor: pointer; }
button.ghost { background: transparent; color: var(--accent); border: 1px solid var(--line); }
button.small { padding: 2px 8px; font-size: 12px; }
select { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 6px; padding: 4px 6px; }
.pill { display: inline-block; border-radius: 99px; padding: 1px 9px; font-size: 12px; background: var(--line); }
.pill.ok { background: #1f3d2b; color: var(--ok); }
.pill.warn { background: #3d321f; color: var(--no); }
.pill.wish { background: #2e2342; color: var(--wish); }
.pill.bad { background: #4a1f1f; color: #ff8a84; font-weight: 600; }
.pill.sale { background: #213a1d; color: #a4d65e; }
.mode { margin: 12px 0; }
.cards { display: grid; gap: 12px; }
.card { display: flex; gap: 14px; background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: 10px; padding: 12px 14px; color: inherit; text-decoration: none; }
.card:hover { border-color: var(--accent); }
.card.buy { border-left-color: var(--ok); }
.card.skip { border-left-color: var(--bad); }
.card img { width: 140px; height: 70px; object-fit: contain; flex: none; }
.card h3 { margin: 0 0 2px; font-size: 17px; }
.card p { margin: 2px 0; }
.bundle-head { display: flex; gap: 16px; align-items: center; }
.bundle-head img { max-width: 220px; max-height: 90px; }
.bundle-head h2 { margin: 0; }
.rec { padding: 12px 16px; border-radius: 10px; margin: 16px 0; font-size: 16px; border: 1px solid var(--line); }
.rec.buy { background: #17301f; border-color: #2b5a3a; }
.rec.skip { background: #34191a; border-color: #5d2b2b; }
.warn-box { background: #3d321f; border-radius: 8px; padding: 8px 12px; }
.bad-box { background: #4a1f1f; border: 1px solid #7a2e2e; border-radius: 8px; padding: 8px 12px; }
.warn-text { color: var(--no); }
#steam.attention { border-color: var(--no); }
#steam .warn-box { margin: 10px 0 0; }
.scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); font-weight: 600; white-space: nowrap; }
td.num { text-align: right; white-space: nowrap; }
tr.best td { background: #17301f; }
tr.nowant td { opacity: .55; }
tfoot td { font-weight: 600; border-bottom: 0; }
.links { font-size: 12px; }
.st.ok { color: var(--ok); } .st.no { color: var(--no); } .st.unk { color: var(--muted); } .st.bad { color: var(--bad); }
.pos { color: var(--ok); } .neg { color: var(--bad); }
footer { padding: 24px 16px 40px; font-size: 13px; }
@media (max-width: 640px) {
  .card { flex-direction: column; }
  .card img { width: 100%; height: 60px; }
  .bundle-head { flex-direction: column; align-items: flex-start; }
}
