:root {
  --bg: #f6f6f8;
  --surface: #ffffff;
  --text: #15161a;
  --muted: #5d606b;
  --line: #e2e3e8;
  --accent: #6d28d9;
  --accent-ink: #ffffff;
  --hi: #15803d;
  --mid: #b45309;
  --lo: #b91c1c;
  --radius: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e0f13;
    --surface: #171820;
    --text: #ececf1;
    --muted: #9a9cab;
    --line: #262833;
    --accent: #a78bfa;
    --accent-ink: #0e0f13;
    --hi: #4ade80;
    --mid: #fbbf24;
    --lo: #f87171;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e0f13; --surface: #171820; --text: #ececf1; --muted: #9a9cab; --line: #262833;
  --accent: #a78bfa; --accent-ink: #0e0f13; --hi: #4ade80; --mid: #fbbf24; --lo: #f87171;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.7 "Heebo", system-ui, sans-serif;
}
a { color: inherit; }
a:hover { color: var(--accent); }
a:has(> .cover) { text-decoration: none; display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* header */
.top { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; flex-wrap: wrap; }
.logo { font-weight: 900; font-size: 26px; text-decoration: none; letter-spacing: -0.5px; display: flex; gap: 8px; align-items: center; }
.mark { color: var(--accent); font-size: 18px; transform: scaleX(-1); display: inline-block; }
nav { display: flex; gap: 4px; flex-wrap: wrap; }
nav a { text-decoration: none; padding: 6px 12px; border-radius: 999px; font-weight: 500; font-size: 15px; color: var(--muted); }
nav a.on, nav a:hover { background: var(--accent); color: var(--accent-ink); }

/* covers: generated per game, no copyrighted art */
.cover {
  --h: 260;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  --gen:
    radial-gradient(120% 90% at 85% 10%, hsl(var(--h) 85% 62% / .9), transparent 60%),
    radial-gradient(90% 80% at 10% 100%, hsl(calc(var(--h) + 50) 80% 45% / .9), transparent 65%),
    hsl(calc(var(--h) + 20) 45% 16%);
  background: var(--gen);
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 14px 16px;
  overflow: hidden;
}
.cover-game { color: #fff; font-weight: 900; font-size: 20px; line-height: 1.15; text-shadow: 0 2px 12px rgb(0 0 0 / .35); direction: ltr; }
.cover.big .cover-game { font-size: clamp(26px, 5vw, 46px); }
.cover .chip { position: absolute; top: 12px; right: 12px; }
.chip { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--line); color: var(--text); }
.chip.rumor { background: #fbbf24; color: #1a1300; }

/* home */
.lead { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: center; padding: 28px 0 8px; }
.lead h1 { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.2; margin: 6px 0 10px; font-weight: 900; }
.lead h1 a, .card h3 a { text-decoration: none; }
.dek { font-size: 19px; color: var(--muted); margin: 0 0 14px; }
.meta { font-size: 14px; color: var(--muted); }
.section { font-size: 22px; font-weight: 900; margin: 36px 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--line); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card .cover { border-radius: 0; }
.card-body { padding: 14px 16px 18px; }
.card h3 { font-size: 19px; line-height: 1.35; margin: 4px 0 6px; }
.card p { margin: 0 0 10px; color: var(--muted); font-size: 15px; }

/* reliability meter */
.meter { display: grid; gap: 4px; max-width: 360px; }
.meter-track { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.meter-fill { height: 100%; border-radius: 99px; }
.meter.hi .meter-fill { background: var(--hi); } .meter.hi b { color: var(--hi); }
.meter.mid .meter-fill { background: var(--mid); } .meter.mid b { color: var(--mid); }
.meter.lo .meter-fill { background: var(--lo); } .meter.lo b { color: var(--lo); }
.meter-text { font-size: 14px; }

/* article */
.story { max-width: 740px; margin: 0 auto; padding: 28px 0; }
.story h1 { font-size: clamp(28px, 4.2vw, 44px); line-height: 1.2; margin: 6px 0 12px; font-weight: 900; }
.story .cover { margin: 18px 0 22px; }
.body h2 { font-size: 24px; margin: 28px 0 8px; }
.body p, .body li { font-size: 18px; }
.verdict { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 20px; }
.verdict h2 { font-size: 18px; margin: 0 0 8px; }
.cases { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cases h3 { font-size: 15px; margin: 8px 0 0; }
.cases ul { margin: 4px 0; padding-inline-start: 20px; font-size: 15px; }
.sources { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 8px; }
.sources h2 { font-size: 18px; }
.sources ul { padding-inline-start: 20px; }
.byline { font-size: 14px; color: var(--muted); }

/* misc pages */
.intro { max-width: 740px; padding: 28px 0 8px; }
.intro h1 { font-size: 36px; font-weight: 900; margin: 0 0 8px; }
.empty { text-align: center; padding: 60px 0; color: var(--muted); }
.review-promise { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 20px 0; }
.promise { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.promise p { margin: 4px 0 0; color: var(--muted); }
.big-num { font-size: 34px; font-weight: 900; color: var(--accent); }
.foot { border-top: 1px solid var(--line); margin-top: 48px; padding: 20px 16px 40px; font-size: 14px; color: var(--muted); }

@media (max-width: 760px) {
  .lead { grid-template-columns: 1fr; gap: 14px; }
  .cases { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  body { font-size: 16px; }
}

/* reviews */
.score { display: inline-grid; place-items: center; min-width: 56px; height: 56px; padding: 0 8px; border-radius: 12px; font-weight: 900; font-size: 26px; color: #fff; }
.score.hi { background: #15803d; } .score.mid { background: #b45309; } .score.lo { background: #b91c1c; }
.cover .score { position: absolute; top: 12px; left: 12px; min-width: 46px; height: 46px; font-size: 22px; }
.chip.review { background: var(--accent); color: var(--accent-ink); }
.review-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin: 18px 0 22px; }
.review-head { display: flex; gap: 14px; align-items: center; }
.review-game { font-weight: 900; font-size: 20px; direction: ltr; text-align: right; }

/* free games & deals */
.chip.free { background: #16a34a; color: #fff; }
.free-strip { display: block; margin: 20px 0 0; padding: 12px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; font-size: 15px; }
.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 700; padding: 6px 14px; border-radius: 999px; font-size: 14px; }
.btn:hover { color: var(--accent-ink); filter: brightness(1.1); }
.deals { display: grid; gap: 10px; }
.deal { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; text-decoration: none; }
.deal:hover { border-color: var(--accent); color: inherit; }
.deal-off { background: #16a34a; color: #fff; font-weight: 900; border-radius: 10px; padding: 6px 10px; min-width: 64px; text-align: center; }
.deal-main { display: grid; min-width: 0; }
.deal-title { font-weight: 700; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.deal-price { white-space: nowrap; } .deal-price s { color: var(--muted); font-size: 14px; }
@media (max-width: 760px) { .deal { grid-template-columns: auto 1fr; } .deal-price { grid-column: 2; } }

/* events */
.event-strip { margin-top: 20px; }
.event-strip + .free-strip { margin-top: 10px; }
.subscribe { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.subscribe code { font-size: 13px; word-break: break-all; }
.event-day { font-size: 18px; font-weight: 900; margin: 26px 0 10px; color: var(--muted); }
.events .event { display: grid; grid-template-columns: 84px 1fr; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 10px; }
.event-time { font-size: 26px; font-weight: 900; color: var(--accent); line-height: 1.1; }
.event h3 { margin: 0 0 4px; font-size: 19px; text-align: right; }
.event p { margin: 0 0 6px; color: var(--muted); font-size: 15px; }

/* rumor tracking */
.resolution { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 10px 14px; border-radius: var(--radius); margin: 12px 0; border: 1px solid var(--line); background: var(--surface); }
.chip.st-confirmed { background: #15803d; color: #fff; }
.chip.st-denied { background: #b91c1c; color: #fff; }
.chip.st-open { background: var(--line); }
.chip.st-expired { background: var(--line); color: var(--muted); }
.table-wrap { overflow-x: auto; }
.board { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.board th, .board td { padding: 10px 12px; text-align: right; border-bottom: 1px solid var(--line); font-size: 15px; }
.board th { color: var(--muted); font-weight: 500; }
.tracked-row { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--line); }

.chip.lowest { background: #16a34a; color: #fff; margin-inline-start: 6px; }
.lowest-note { display: block; font-size: 12px; color: var(--muted); }

/* official game art; the generated gradient stays underneath if the image fails to load */
.cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover.has-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(0 0 0 / .6), transparent 45%); }
.cover > .cover-game { position: relative; z-index: 1; }
.cover > .chip, .cover > .score { z-index: 1; } /* already absolutely positioned above */
.cover.art-logo .cover-game { display: none; } /* Steam art carries the logo; if it fails to load, onerror drops the class */
.img-credit { font-size: 12px; color: var(--muted); margin: -14px 0 18px; }
