@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/assets/fonts/inter-latin.woff2) format('woff2'); }
@font-face { font-family: 'Fredoka'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/assets/fonts/fredoka-latin.woff2) format('woff2'); }
/* Deal tracker: homepage prototype. Neutral greys, one muted blue accent, no bright colours. Light by default, dark follows the system or the toggle. */
:root {
  --bg: #f4f4f5; --card: #ffffff; --card2: #fafafa; --line: #e4e4e7; --line2: #d4d4d8;
  --ink: #18181b; --ink2: #3f3f46; --muted: #71717a; --faint: #a1a1aa;
  --acc: #2563eb; --acc-soft: #e3ecff; --acc-ink: #ffffff;
  --good: #3f7a5a; --good-soft: #e5f0ea; --warn: #8a6a2a; --warn-soft: #f3ecdc; --bad: #9a4a4a;
  --shadow: 0 1px 2px rgba(24, 24, 27, .05), 0 1px 1px rgba(24, 24, 27, .03);
  --radius: 10px; --radius-s: 6px;
  --font: Inter, "Inter Variable", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #17171a; --card: #1f1f23; --card2: #232328; --line: #2e2e34; --line2: #3a3a42;
  --ink: #e7e7ea; --ink2: #c4c4cb; --muted: #9a9aa4; --faint: #6b6b75;
  --acc: #5b94ff; --acc-soft: #1a2a4d; --acc-ink: #06101f;
  --good: #7fb597; --good-soft: #22302a; --warn: #cfb069; --warn-soft: #332e22; --bad: #cf8a8a;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
    --bg: #17171a; --card: #1f1f23; --card2: #232328; --line: #2e2e34; --line2: #3a3a42;
    --ink: #e7e7ea; --ink2: #c4c4cb; --muted: #9a9aa4; --faint: #6b6b75;
    --acc: #5b94ff; --acc-soft: #1a2a4d; --acc-ink: #06101f;
    --good: #7fb597; --good-soft: #22302a; --warn: #cfb069; --warn-soft: #332e22; --bad: #cf8a8a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3);
    color-scheme: dark;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); color: var(--ink); padding: 8px 12px; border-radius: var(--radius-s); z-index: 50; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; border-radius: 4px; }

/* prototype notice */
.proto { background: var(--warn-soft); color: var(--warn); font-size: 13px; text-align: center; padding: 6px 12px; border-bottom: 1px solid var(--line); }

/* header */
.top { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.top .wrap { display: flex; align-items: center; gap: 22px; height: 58px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 17px; letter-spacing: -.01em; text-decoration: none; }
.brand svg { width: 26px; height: 26px; }
.nav { display: flex; gap: 4px; margin-left: 6px; }
.nav a { text-decoration: none; color: var(--ink2); padding: 7px 11px; border-radius: var(--radius-s); font-size: 14px; font-weight: 500; }
.nav a:hover { background: var(--bg); }
.tools { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.chip-btn { display: inline-flex; align-items: center; gap: 6px; background: var(--card); border: 1px solid var(--line2); border-radius: var(--radius-s); padding: 6px 10px; font-size: 13px; font-weight: 500; cursor: pointer; color: var(--ink2); }
.chip-btn:hover { background: var(--bg); }

/* hero and filters */
.hero { padding: 38px 0 18px; }
.hero h1 { margin: 0 0 8px; font-size: clamp(26px, 4vw, 38px); line-height: 1.12; letter-spacing: -.025em; font-weight: 700; max-width: 18em; }
.hero .lede { margin: 0 0 20px; color: var(--muted); font-size: 16px; max-width: 40em; }
.search { display: flex; gap: 8px; max-width: 640px; }
.search input { flex: 1; min-width: 0; background: var(--card); border: 1px solid var(--line2); border-radius: var(--radius); padding: 12px 14px; font-size: 15px; box-shadow: var(--shadow); }
.search input::placeholder { color: var(--faint); }
.btn { background: var(--acc); color: var(--acc-ink); border: 0; border-radius: var(--radius); padding: 12px 18px; font-weight: 600; cursor: pointer; }
.btn:hover { filter: brightness(1.06); }
.btn.ghost { background: var(--card); color: var(--ink2); border: 1px solid var(--line2); }
.filters { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; margin-top: 18px; }
.seg { display: inline-flex; background: var(--card); border: 1px solid var(--line2); border-radius: var(--radius-s); padding: 2px; gap: 2px; }
.seg button { background: transparent; border: 0; border-radius: 4px; padding: 6px 12px; font-size: 13px; font-weight: 500; color: var(--muted); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--acc-soft); color: var(--acc); }
.seg button:disabled { opacity: .5; cursor: not-allowed; }
.soon { font-size: 12px; color: var(--faint); }
.status { margin-top: 14px; font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--good); margin-right: 6px; vertical-align: 1px; }

/* sections */
section.block { padding: 26px 0 8px; }
.block h2 { margin: 0; font-size: 20px; letter-spacing: -.015em; font-weight: 650; }
.block .head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.block .head a { font-size: 13px; color: var(--acc); text-decoration: none; font-weight: 500; }
.block .head a:hover { text-decoration: underline; }
.sub { color: var(--muted); font-size: 14px; margin: 3px 0 0; }

/* game cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(188px, 1fr)); gap: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; text-decoration: none; transition: border-color .15s, transform .15s; }
.card:hover { border-color: var(--line2); transform: translateY(-2px); }
.cover { aspect-ratio: 4 / 3; display: grid; place-items: center; color: rgba(255, 255, 255, .86); font-weight: 700; font-size: 28px; letter-spacing: .02em; position: relative; }
.badge { position: absolute; top: 8px; left: 8px; background: rgba(24, 24, 27, .72); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 7px; border-radius: 4px; }
.badge.low { left: auto; right: 8px; background: var(--warn-soft); color: var(--warn); }
.cbody { padding: 11px 12px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ctitle { font-weight: 600; font-size: 14.5px; line-height: 1.3; }
.meta { display: flex; flex-wrap: wrap; gap: 5px; }
.tag { font-size: 11.5px; font-weight: 600; letter-spacing: .01em; padding: 2px 7px; border-radius: 4px; background: var(--bg); color: var(--muted); border: 1px solid var(--line); }
.tag.p-switch, .tag.p-switch2, .tag.p-playstation, .tag.p-xbox, .tag.p-pc { border-color: transparent; background: color-mix(in srgb, currentColor 11%, transparent); }   /* each console in a soft colour of its own, nothing bright */
.tag.p-switch { color: #a8444d; } .tag.p-switch2 { color: #8c3640; background: color-mix(in srgb, currentColor 17%, transparent); } .tag.p-playstation { color: #3f6a9e; } .tag.p-xbox { color: #46784f; } .tag.p-pc { color: #4f6b80; }
:root[data-theme="dark"] .tag.p-switch { color: #d4959a; } :root[data-theme="dark"] .tag.p-switch2 { color: #cf8a91; } :root[data-theme="dark"] .tag.p-playstation { color: #93b0d6; } :root[data-theme="dark"] .tag.p-xbox { color: #8dba95; } :root[data-theme="dark"] .tag.p-pc { color: #92b3c9; }
@media (prefers-color-scheme: dark) { :root[data-theme="auto"] .tag.p-switch { color: #d4959a; } :root[data-theme="auto"] .tag.p-switch2 { color: #cf8a91; } :root[data-theme="auto"] .tag.p-playstation { color: #93b0d6; } :root[data-theme="auto"] .tag.p-xbox { color: #8dba95; } :root[data-theme="auto"] .tag.p-pc { color: #92b3c9; } }
.price { display: flex; align-items: baseline; gap: 7px; margin-top: auto; padding-top: 4px; }
.price b { font-size: 18px; letter-spacing: -.01em; }
.price s { color: var(--faint); font-size: 13px; }
.where { font-size: 12.5px; color: var(--muted); }
.ends { font-size: 12.5px; color: var(--muted); }
.ends.soon-end { color: #6f5fa8; font-weight: 600; }   /* ending soon: a soft purple, so it does not clash with the console tags */
:root[data-theme="dark"] .ends.soon-end { color: #b3a6e0; }
@media (prefers-color-scheme: dark) { :root[data-theme="auto"] .ends.soon-end { color: #b3a6e0; } }

/* compare panel */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); display: grid; grid-template-columns: 240px 1fr; overflow: hidden; }
.panel .cover { aspect-ratio: auto; min-height: 220px; font-size: 40px; }
.pinfo { padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.pinfo h3 { margin: 0; font-size: 19px; letter-spacing: -.01em; }
.stats { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 4px 0 8px; color: var(--muted); font-size: 13px; }
.stats b { color: var(--ink); font-weight: 600; }
table.cmp { width: 100%; border-collapse: collapse; font-size: 14px; }
table.cmp th { text-align: left; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 7px 8px; border-bottom: 1px solid var(--line); }
table.cmp td { padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.cmp tr:last-child td { border-bottom: 0; }
table.cmp tr.best td { background: var(--good-soft); }
.store { font-weight: 600; }
.fmt { font-size: 12px; color: var(--muted); }
.checked { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.checked.old { color: var(--bad); }
.go { background: var(--card); border: 1px solid var(--line2); border-radius: var(--radius-s); padding: 5px 12px; font-size: 13px; font-weight: 600; color: var(--acc); cursor: pointer; text-decoration: none; display: inline-block; }
.go:hover { background: var(--acc-soft); }
#where .go { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); padding: 7px 16px; }   /* the shop button is solid blue */
#where .go:hover { background: var(--acc); filter: brightness(1.1); }
table.cmp th.pr, table.cmp td.pr { text-align: right; white-space: nowrap; }
#where table.cmp td.pr { font-size: 16px; padding-right: 14px; width: 1%; }
#where table.cmp td.pr s { color: var(--muted); font-size: 13px; font-weight: 400; margin: 0 4px; }
#where table.cmp td.pr .tag { font-size: 12px; }
#where table.cmp .fmt .checked { font-size: 12px; }
#where .fmt .checked::before { content: " · "; }
#where table.cmp td:last-child, #where table.cmp th:last-child { width: 1%; white-space: nowrap; }
.fine { font-size: 12.5px; color: var(--muted); margin: 10px 2px 0; }

/* list of drops */
.rows { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.row { display: grid; grid-template-columns: 44px 1fr auto auto; gap: 14px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row .cover { width: 44px; height: 44px; aspect-ratio: auto; font-size: 15px; border-radius: 6px; }
.rtitle { font-weight: 600; }
.rsub { font-size: 12.5px; color: var(--muted); }
.drop { text-align: right; }
.drop b { font-size: 16px; }
.drop span { display: block; font-size: 12.5px; color: var(--muted); }
.pct { background: var(--good-soft); color: var(--good); font-weight: 700; padding: 3px 8px; border-radius: 4px; font-size: 13px; min-width: 52px; text-align: center; }

/* sales and steps */
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.tile h3 { margin: 0 0 4px; font-size: 16px; }
.tile p { margin: 0; color: var(--muted); font-size: 14px; }
.tile .big { font-size: 13px; color: var(--acc); font-weight: 600; margin-top: 8px; display: block; }
.step { display: flex; gap: 12px; }
.step i { font-style: normal; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--acc-soft); color: var(--acc); display: grid; place-items: center; font-weight: 700; font-size: 14px; }

footer { margin-top: 38px; border-top: 1px solid var(--line); background: var(--card); padding: 26px 0 34px; color: var(--muted); font-size: 13.5px; }
footer .cols { display: flex; flex-wrap: wrap; gap: 24px 60px; margin-bottom: 18px; }
footer h4 { margin: 0 0 8px; color: var(--ink); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
footer a { text-decoration: none; }
footer a:hover { text-decoration: underline; }
.empty { color: var(--muted); padding: 22px; text-align: center; grid-column: 1 / -1; }

@media (max-width: 760px) {
  .nav { display: none; }
  .panel { grid-template-columns: 1fr; }
  .panel .cover { min-height: 120px; }
  .row { grid-template-columns: 40px 1fr auto; }
  .row .pct { display: none; }
  table.cmp .hide-s { display: none; }
  .search { flex-direction: column; }
}
@media (max-width: 560px) {
  .tools .region { display: none; }
  .tools .chip-btn { padding: 6px 8px; font-size: 12.5px; }
  .brand { white-space: nowrap; font-size: 16px; }
  .top .wrap { gap: 10px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ctitle { font-size: 13.5px; }
  .price b { font-size: 16px; }
  .where, .ends { font-size: 12px; }
  .filters { gap: 10px; }
  .seg button { padding: 6px 9px; }
  .row { gap: 10px; padding: 9px 10px; }
  table.cmp td, table.cmp th { padding: 8px 5px; }
}
@media (prefers-reduced-motion: reduce) { .card { transition: none; } }

/* ---- cards: whole card is a link, heart sits on top ---- */
.card { position: relative; }
.card:hover { transform: translateY(-2px); }
a.stretch { text-decoration: none; color: inherit; }
a.stretch::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.heart { position: absolute; bottom: 8px; right: 8px; z-index: 3; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(24, 24, 27, .62); color: #fff; font-size: 17px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.heart:hover { background: rgba(24, 24, 27, .82); }
.heart[aria-pressed="true"] { background: var(--acc); color: var(--acc-ink); }
a.row { text-decoration: none; color: inherit; }
a.row:hover { background: var(--card2); }
.tools .count { background: var(--acc); color: var(--acc-ink); border-radius: 9px; font-size: 11px; font-weight: 700; padding: 1px 6px; }
.tag.good { background: var(--good-soft); color: var(--good); border-color: transparent; }
.muted { color: var(--muted); font-size: 13px; }

/* ---- game page ---- */
.crumb { padding: 18px 0 4px; color: var(--muted); font-size: 13.5px; }
.crumb a { color: var(--acc); text-decoration: none; }
.ghead { display: grid; grid-template-columns: 220px 1fr 280px; gap: 22px; padding: 14px 0 6px; align-items: start; }
.ghead .cover { aspect-ratio: 4 / 5; border-radius: var(--radius); font-size: 44px; }
.ginfo h1 { margin: 0 0 8px; font-size: clamp(24px, 3.4vw, 34px); letter-spacing: -.02em; line-height: 1.15; }
.blurb { color: var(--ink2); margin: 10px 0 14px; max-width: 38em; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px 18px; margin: 0; }
.facts dt { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.facts dd { margin: 1px 0 0; font-weight: 600; font-size: 14px; }
.gbuy { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; }
.gbuy .lab { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.gbuy .big { font-size: 34px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.gbuy .was { color: var(--muted); display: flex; gap: 8px; align-items: center; }
.gbuy .at { color: var(--ink2); font-size: 14px; margin: 2px 0 12px; }
.btnrow { display: flex; flex-wrap: wrap; gap: 8px; }
.btnrow .btn { padding: 10px 14px; font-size: 14px; text-decoration: none; display: inline-block; text-align: center; }
.mini { margin-top: 12px; font-size: 13px; color: var(--muted); display: grid; gap: 4px; }
.panelwide { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px 16px 14px; overflow-x: auto; }
.chartbox { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px 12px; }
.legend { display: flex; gap: 18px; font-size: 13px; color: var(--ink2); margin-bottom: 6px; flex-wrap: wrap; }
.sw { display: inline-block; width: 18px; height: 3px; border-radius: 2px; margin-right: 7px; vertical-align: middle; }
.sw.d { background: var(--acc); } .sw.p { background: var(--warn); }
.chartwrap { position: relative; }
#chart { width: 100%; height: 290px; touch-action: pan-y; }
#chart .grid { stroke: var(--line); stroke-width: 1; }
#chart .axis { fill: var(--muted); font-size: 11px; font-family: var(--font); }
#chart .line { fill: none; stroke-width: 2.2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
#chart .line.d { stroke: var(--acc); } #chart .line.p { stroke: var(--warn); stroke-dasharray: 5 3; }
#chart .cur { stroke: var(--faint); stroke-width: 1; vector-effect: non-scaling-stroke; }
.tip { position: absolute; background: var(--card); border: 1px solid var(--line2); border-radius: var(--radius-s); box-shadow: 0 4px 14px rgba(0, 0, 0, .15); padding: 8px 10px; font-size: 13px; pointer-events: none; min-width: 140px; z-index: 5; }
.tip div { margin-top: 3px; color: var(--ink2); }
.stats2 { display: flex; flex-wrap: wrap; gap: 6px 26px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; }
.stats2 b { color: var(--ink); }
.grid2 { display: grid; grid-template-columns: 1.1fr 1fr; gap: 22px; align-items: start; }
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 5px; font-size: 13.5px; font-weight: 600; color: var(--ink2); }
.form input[type=email], .form input[type=number] { background: var(--card); border: 1px solid var(--line2); border-radius: var(--radius-s); padding: 9px 11px; font-weight: 400; color: var(--ink); }
.form fieldset { border: 1px solid var(--line); border-radius: var(--radius-s); padding: 8px 12px 10px; margin: 0; display: grid; gap: 6px; }
.form legend { font-size: 12px; color: var(--muted); padding: 0 5px; text-transform: uppercase; letter-spacing: .05em; }
.form label.chk { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.form .btn { justify-self: start; }
.detail { padding: 6px 18px; }
.dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 40px; margin: 0; }
.dl > div { display: grid; grid-template-columns: 150px 1fr; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.dl dt { color: var(--muted); font-size: 13.5px; }
.dl dd { margin: 0; font-size: 14px; }
.dl ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.dl a { color: var(--acc); text-decoration: none; } .dl a:hover { text-decoration: underline; }
.score { display: inline-block; background: var(--good-soft); color: var(--good); font-weight: 700; padding: 1px 8px; border-radius: 4px; }

/* ---- wishlist page ---- */
.wlhead { padding: 30px 0 8px; } .wlhead h1 { margin: 0 0 6px; font-size: 30px; letter-spacing: -.02em; }
.wlrow { display: grid; grid-template-columns: 56px 1fr 130px 150px auto; gap: 14px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.wlrow:last-child { border-bottom: 0; }
.wlrow .cover { width: 56px; height: 56px; aspect-ratio: auto; font-size: 17px; border-radius: 6px; }
.wlrow input[type=number] { width: 100%; background: var(--card); border: 1px solid var(--line2); border-radius: var(--radius-s); padding: 7px 9px; }
.wlrow .rm { background: transparent; border: 0; color: var(--muted); cursor: pointer; font-size: 13px; text-decoration: underline; }
.wlsum { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 12px 14px; background: var(--card2); border-top: 1px solid var(--line); font-size: 14px; }
.prefs { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px 20px; align-items: end; }

@media (max-width: 900px) { .ghead { grid-template-columns: 150px 1fr; } .gbuy { grid-column: 1 / -1; } .grid2 { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .ghead { grid-template-columns: 1fr; } .ghead .cover { aspect-ratio: 16 / 7; } .dl > div { grid-template-columns: 1fr; gap: 2px; }
  .wlrow { grid-template-columns: 48px 1fr auto; } .wlrow .tcell, .wlrow .scell { grid-column: 2 / -1; }
  #chart { height: 240px; }
}

/* ---- chart: one muted colour per store ---- */
:root { --c0: #3f6c9b; --c1: #b7823a; --c2: #5d8f7a; --c3: #8a6fae; --c4: #b05d5d; --c5: #6f7f8f; }
:root[data-theme="dark"] { --c0: #86a9cf; --c1: #d2a45f; --c2: #86b9a3; --c3: #b79ed6; --c4: #d58d8d; --c5: #a4b2c0; }
@media (prefers-color-scheme: dark) { :root[data-theme="auto"] { --c0: #86a9cf; --c1: #d2a45f; --c2: #86b9a3; --c3: #b79ed6; --c4: #d58d8d; --c5: #a4b2c0; } }
.legend { gap: 8px; }
.lg { display: inline-flex; align-items: center; gap: 7px; background: var(--card); border: 1px solid var(--line2); border-radius: 999px; padding: 4px 11px 4px 9px; font-size: 13px; cursor: pointer; color: var(--ink2); }
.lg i { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }
.lg small { color: var(--muted); font-size: 11.5px; }
.lg[aria-pressed="false"] { opacity: .45; text-decoration: line-through; }
#chart .line { stroke-width: 1.7; stroke-dasharray: none; }
#chart .line.main { stroke-width: 2.6; }
/* ---- real site additions ---- */
.seg a { display: inline-block; border-radius: 4px; padding: 6px 12px; font-size: 13px; font-weight: 500; color: var(--muted); text-decoration: none; }
.seg a[aria-current="true"] { background: var(--acc-soft); color: var(--acc); }
.seg a:hover { color: var(--ink); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pager { display: flex; justify-content: space-between; align-items: center; margin: 22px 0; font-size: 14px; color: var(--muted); }
.pager a { color: var(--acc); text-decoration: none; font-weight: 500; }
.prose { max-width: 720px; padding: 28px 0 40px; line-height: 1.65; }
.prose h1 { margin: 0 0 14px; } .prose h2 { margin: 26px 0 8px; font-size: 18px; } .prose p { color: var(--ink2); margin: 0 0 12px; }
.prose a { color: var(--acc); }
.nav a[aria-current="page"] { color: var(--ink); }
.page-head { padding: 22px 0 8px; } .page-head h1 { margin: 0 0 6px; }
@media (max-width: 640px) { .seg a { padding: 6px 9px; } }
/* header: always dark with white text, in both themes */
.top { --ink: #fff; --ink2: #e4e4ea; --muted: #a9a9b6; --line: #2a2c36; --line2: #3a3d49; --card: #1d1f27; --bg: #2a2c36; --acc: #5b94ff; --acc-ink: #06101f; background: #15161b; color: #fff; border-bottom-color: #2a2c36; }
.brand .wm { font-family: 'Fredoka', system-ui, sans-serif; font-weight: 600; font-size: 25px; letter-spacing: -.01em; line-height: 1; color: #fff; }
.brand .wm i { font-style: normal; color: #5b94ff; }
@media (max-width: 640px) { .brand .wm { font-size: 21px; } }

/* ---- cover art, tags, bookmark ---- */
.cover { overflow: hidden; aspect-ratio: 16 / 9; }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.cover .ini { position: relative; }
.cover img + .ini { opacity: 0; }
.ghead { grid-template-columns: 340px 1fr 280px; }
.ghead .cover { aspect-ratio: 16 / 9; }
@media (max-width: 900px) { .ghead { grid-template-columns: 1fr; } .ghead .cover { max-width: 560px; } }
.meta { display: flex; flex-wrap: wrap; gap: 5px; }
.tag.warn { background: rgba(214, 71, 71, .14); color: #b03a3a; border-color: transparent; }
:root[data-theme="dark"] .tag.warn { color: #ee8f8f; }
@media (prefers-color-scheme: dark) { :root[data-theme="auto"] .tag.warn { color: #ee8f8f; } }
.heart { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; font-size: 0; color: #fff; background: rgba(15, 16, 20, .55); border: 1px solid rgba(255, 255, 255, .2); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: transform .15s ease, background .15s ease; }
.heart:hover { background: rgba(15, 16, 20, .78); transform: translateY(-1px); }
.heart svg path, .btn.wl svg path { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.heart[aria-pressed="true"] { background: var(--acc); color: var(--acc-ink); border-color: var(--acc); animation: gg-pop .28s ease; }
.heart[aria-pressed="true"] svg path, .btn.wl[aria-pressed="true"] svg path { fill: currentColor; }
.btn.wl { display: inline-flex; align-items: center; gap: 8px; }
.btn.wl[aria-pressed="true"] { background: var(--acc-soft); border: 1px solid var(--acc); color: var(--acc); }
@keyframes gg-pop { 50% { transform: scale(1.18); } }
@media (prefers-reduced-motion: reduce) { .heart, .heart[aria-pressed="true"] { animation: none; transition: none; } }

/* ---- live dot, spacing, tag row ---- */
.dot { position: relative; }
.dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--good); animation: gg-live 1.9s ease-out infinite; }
@keyframes gg-live { 0% { transform: scale(1); opacity: .65; } 100% { transform: scale(3.4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .dot::after { animation: none; } }
.ginfo .meta { margin: 12px 0 18px; }
.ginfo h1 { margin-bottom: 0; }
.ginfo .facts { margin-top: 0; }
/* ---- country menu ---- */
.region { position: relative; }
.region summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; background: var(--card); border: 1px solid var(--line2); border-radius: var(--radius-s); padding: 6px 10px; font-size: 13px; font-weight: 500; color: var(--ink2); user-select: none; }
.region summary::-webkit-details-marker { display: none; }
.region summary::after { content: ''; width: 6px; height: 6px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .7; }
.region summary .code { font-weight: 700; color: #fff; } .region summary .cur { color: var(--muted); }
.region[open] summary { background: var(--bg); }
.region .menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; width: 268px; background: var(--card); border: 1px solid var(--line2); border-radius: var(--radius); box-shadow: 0 12px 32px rgba(0, 0, 0, .35); padding: 10px; color: var(--ink); }
.region .menu p { margin: 2px 6px 8px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.region .menu p.note { text-transform: none; letter-spacing: 0; font-weight: 400; margin: 8px 6px 2px; line-height: 1.4; }
.region ul { list-style: none; margin: 0; padding: 0; }
.region li a, .region li.soon { display: flex; align-items: center; gap: 8px; padding: 8px 8px; border-radius: 6px; font-size: 14px; color: var(--ink); text-decoration: none; }
.region li a:hover { background: var(--bg); }
.region li a[aria-current="true"] { background: var(--acc-soft); }
.region li b { display: inline-block; min-width: 24px; font-size: 12px; color: var(--muted); }
.region li small { margin-left: auto; color: var(--muted); font-size: 11.5px; }
.region li.soon { color: var(--muted); } .region li.soon span { display: flex; gap: 8px; align-items: center; }
@media (max-width: 640px) { .region summary .cur { display: none; } .region .menu { position: fixed; left: 12px; right: 12px; top: 64px; width: auto; } }
.cheaper { margin: 0 0 12px; padding: 10px 12px; border-radius: var(--radius-s); background: rgba(37, 99, 235, .10); color: var(--ink); font-size: 14px; border: 1px solid rgba(37, 99, 235, .28); }
.cheaper b { color: var(--acc); }

.tag.mc { border-color: transparent; font-weight: 700; }
.tag.mc.good { background: var(--good-soft); color: var(--good); } .tag.mc.mid { background: var(--warn-soft); color: var(--warn); } .tag.mc.bad { background: rgba(214, 71, 71, .14); color: #c25252; }

.chiprow { display: flex; flex-wrap: wrap; gap: 8px; }
.chiprow .chip-btn { text-decoration: none; } .chiprow small { color: var(--muted); font-weight: 500; }

/* ---- phone layout ---- */
@media (max-width: 640px) {
  .tools .region { display: block; }
  .top .wrap { gap: 10px; }
  .tools { gap: 6px; margin-left: auto; }
  .block .head { flex-wrap: wrap; row-gap: 8px; }
  #rangeSeg { width: 100%; } #rangeSeg button { flex: 1; padding: 7px 4px; }
  .filters { gap: 8px; }
  .filters .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .filters .seg::-webkit-scrollbar { display: none; }
  .seg a, .seg button { white-space: nowrap; }
  .rows { overflow-x: auto; }
  /* where to buy: each store becomes a small box instead of a cramped table row */
  .panelwide table.cmp thead { display: none; }
  .panelwide table.cmp, .panelwide table.cmp tbody { display: block; }
  .panelwide table.cmp tr { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 12px; margin: 0 0 8px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--card2); }
  .panelwide table.cmp tr.best { border-color: var(--good); background: var(--good-soft); }
  .panelwide table.cmp td { padding: 0; border: 0; background: transparent !important; }
  .panelwide table.cmp td:nth-child(1) { grid-column: 1; grid-row: 1; }
  .panelwide table.cmp td:nth-child(2) { grid-column: 2; grid-row: 1; text-align: right; font-size: 17px; padding-right: 0 !important; }
  .panelwide table.cmp td:last-child { grid-column: 1 / -1; grid-row: 2; text-align: left !important; }
  .panelwide table.cmp td:last-child .go { display: block; text-align: center; padding: 9px 12px; }
  #where table.cmp td:last-child { width: auto; white-space: normal; }
  #where .go { padding: 10px 12px; }
  #where .fmt .checked { display: block; }
  #where .fmt .checked::before { content: none; }
  #where table.cmp td.pr { width: auto; white-space: normal; padding-right: 0; }
  .panelwide table.cmp .hide-s { display: block; }
  .gbuy .btnrow { flex-wrap: wrap; } .gbuy .btnrow .btn { flex: 1 1 100%; text-align: center; justify-content: center; }
  .hero h1 { font-size: 28px; line-height: 1.15; }
  .status { gap: 4px 12px; }
  .cards { gap: 12px; }
  .chartbox { padding: 12px; }
  .stats2 { gap: 6px 14px; }
  .wlrow { grid-template-columns: 56px 1fr; } .wlrow .tcell, .wlrow .scell { grid-column: 1 / -1; }
  .footer .cols, footer .cols { gap: 18px; }
}

@media (max-width: 640px) {
  .top .wrap { flex-wrap: wrap; height: auto; padding-top: 8px; padding-bottom: 0; row-gap: 4px; }
  .nav { display: flex !important; order: 5; width: 100%; margin: 0 -2px; padding: 2px 0 8px; overflow-x: auto; scrollbar-width: none; gap: 2px; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; padding: 6px 10px; font-size: 13.5px; }
  .tools .lbl { display: none; }
  .tools .chip-btn, .region summary { white-space: nowrap; }
  .brand .wm { font-size: 19px !important; }
  .top .wrap { min-height: 0; }
}
/* ---- no yellow: saved bookmark and highlight tags use the blue ---- */
.heart[aria-pressed="true"] { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); }
.tag.hot { background: var(--acc-soft); color: var(--acc); border-color: transparent; }
:root[data-theme="dark"] .tag.hot, :root[data-theme="light"] .tag.hot { color: var(--acc); }
@media (prefers-color-scheme: dark) { :root[data-theme="auto"] .tag.hot { color: var(--acc); } }

.about p { margin: 0 0 10px; line-height: 1.65; color: var(--ink2); } .about p:last-child { margin-bottom: 0; }
.about .rawgdesc { padding-top: 10px; border-top: 1px solid var(--line); }
.badge.low { background: var(--acc); color: var(--acc-ink); }

/* ---- card grid: a fixed number of columns per width, and short lists show only whole rows ---- */
.cards { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1180px) { .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1181px) { .cards.fit12 > :nth-child(n+11) { display: none; } .cards.fit6 > :nth-child(n+6) { display: none; } }
@media (min-width: 901px) and (max-width: 1180px) { .cards.fit6 > :nth-child(n+5) { display: none; } }@media (min-width: 901px) and (max-width: 1180px) { .cards.fit5 > :nth-child(n+5) { display: none; } }
@media (min-width: 601px) and (max-width: 900px) { .cards.fit5 > :nth-child(n+4) { display: none; } }
@media (max-width: 600px) { .cards.fit5 > :nth-child(n+5) { display: none; } }

.ctitle { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rtitle { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.family .rtitle { white-space: normal; }

.ginfo h1.long { font-size: 26px; line-height: 1.2; }
@media (max-width: 640px) { .ginfo h1.long { font-size: 22px; } }

.flag { display: inline-block; vertical-align: -2px; flex: none; border-radius: 2.5px; }
.region li .flag { margin-right: 2px; }

.only-m { display: none; }
@media (max-width: 640px) { .only-m { display: inline-block; } .only-d { display: none !important; } }
.formerr { color: #e05b5b; margin: 0 0 12px; font-size: 14px; }
details.tile > summary { cursor: pointer; font-weight: 600; }

/* ---- admin ---- */
.atabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 18px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.atabs a { padding: 7px 12px; border-radius: var(--radius-s); text-decoration: none; color: var(--ink2); font-size: 14px; font-weight: 500; }
.atabs a[aria-current="page"] { background: var(--acc-soft); color: var(--acc); }
.stabs { display: flex; gap: 6px; margin: 0 0 16px; flex-wrap: wrap; }
.stabs a { padding: 8px 16px; border: 1px solid var(--line); border-radius: var(--radius-s); text-decoration: none; color: var(--ink2); font-size: 14px; font-weight: 600; }
.stabs a[aria-current="page"] { background: var(--acc-soft); color: var(--acc); border-color: transparent; }
.spills { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 10px; }
.spills .pill { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--ink2); font-size: 13px; }
.spills .pill.on { background: var(--acc-soft); color: var(--acc); border-color: transparent; font-weight: 600; }
.srow { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.srow:first-child { border-top: 0; }
.srow .grow { flex: 1; min-width: 180px; }
.srow select, .srow input[type=number] { background: var(--card); color: var(--ink); border: 1px solid var(--line2); border-radius: var(--radius-s); padding: 7px 9px; font: inherit; }
.srow label.chk { align-items: flex-start; font-weight: 400; color: var(--ink); }
.srow label.chk input { margin-top: 4px; }
.slist { margin: 0 0 12px 18px; padding: 0; line-height: 1.7; font-size: 14px; }
.sdet { border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 10px; background: var(--card); }
.sdet summary { padding: 13px 16px; cursor: pointer; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.sdet .in { padding: 0 16px 16px; }
.scp { margin: 0 0 10px; }
.scopy { width: 100%; font: inherit; padding: 8px; box-sizing: border-box; }
.astats { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-bottom: 8px; }
.astat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.astat b { font-size: 26px; letter-spacing: -.02em; } .astat span { color: var(--ink2); font-size: 13px; } .astat small { color: var(--muted); font-size: 12px; }
.admin h2 { font-size: 17px; margin: 26px 0 10px; } .admin code { background: var(--bg); padding: 1px 5px; border-radius: 4px; font-size: 13px; }
.muted { color: var(--muted); }
/* ---- form fields: every kind looks the same ---- */
.form input[type=password], .form input[type=text], .form input[type=search] { background: var(--card); border: 1px solid var(--line2); border-radius: var(--radius-s); padding: 9px 11px; font-weight: 400; font-size: 15px; color: var(--ink); width: 100%; box-sizing: border-box; font-family: inherit; }
.form input:focus { outline: 2px solid var(--acc); outline-offset: 1px; }
/* the phone menu row scrolls sideways: a soft fade on the right edge shows there is more */
@media (max-width: 640px) { .nav { -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); } }
/* ---- signed-in account menu (header) ---- */
.acct { position: relative; }
.acct summary { list-style: none; display: inline-flex; align-items: center; gap: 7px; cursor: pointer; background: var(--card); border: 1px solid var(--line2); border-radius: var(--radius-s); padding: 4px 10px 4px 5px; font-size: 13px; font-weight: 500; color: var(--ink2); user-select: none; }
.acct summary::-webkit-details-marker { display: none; }
.acct[open] summary { background: var(--bg); }
.acct .av { width: 22px; height: 22px; border-radius: 50%; background: var(--acc); color: var(--acc-ink); display: inline-grid; place-items: center; font-size: 12px; font-weight: 700; }
.acct .menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; width: 232px; background: var(--card); border: 1px solid var(--line2); border-radius: var(--radius); box-shadow: 0 12px 32px rgba(0, 0, 0, .35); padding: 10px; color: var(--ink); }
.acct .menu .em { margin: 2px 6px 8px; font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct ul { list-style: none; margin: 0; padding: 0; }
.acct li a { display: block; padding: 8px; border-radius: 6px; font-size: 14px; color: var(--ink); text-decoration: none; }
.acct li a:hover { background: var(--bg); }
.acct form { margin: 6px 0 0; padding-top: 6px; border-top: 1px solid var(--line); }
.acct form button { width: 100%; text-align: left; background: none; border: 0; padding: 8px; border-radius: 6px; font: inherit; font-size: 14px; color: var(--ink); cursor: pointer; }
.acct form button:hover { background: var(--bg); }
.chip-btn.signin { text-decoration: none; background: var(--acc); color: var(--acc-ink); border-color: var(--acc); font-weight: 600; }
@media (max-width: 640px) { .acct .who { display: none; } .acct summary { padding: 4px 6px 4px 5px; } .acct .menu { position: fixed; left: 12px; right: 12px; top: 64px; width: auto; } }

/* ---- home: two boxes side by side ---- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.duo.one { grid-template-columns: 1fr; }
.duo .block .head { margin-bottom: 12px; }
.duo .row { grid-template-columns: 44px minmax(0, 1fr) auto auto; }
.duo .rtitle { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 900px) { .duo { grid-template-columns: 1fr; gap: 0; } }

.intro { max-width: 70ch; color: var(--muted); font-size: 14px; line-height: 1.6; margin: 22px 0 8px; }
.tools a.chip-btn { text-decoration: none; }
.wl-link svg { width: 14px; height: 14px; }
@media (max-width: 640px) { .wl-link .lbl { display: none; } }
@media (max-width: 640px) { .tools .region summary .code { display: none; } .tools { gap: 5px; } .wl-link { padding: 6px 8px; } }

/* ---- footer ---- */
body { min-height: 100vh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
footer { padding: 34px 0 26px; }
footer .cols { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 28px 36px; margin-bottom: 26px; }
footer .fbrand p { margin: 10px 0 0; max-width: 34ch; line-height: 1.55; }
footer .fbrand .brand { font-size: 20px; }
footer ul { gap: 8px; }
footer .fbar { border-top: 1px solid var(--line); padding-top: 18px; display: flex; gap: 12px 32px; justify-content: space-between; align-items: flex-start; }
footer .fbar p { margin: 0; font-size: 12.5px; line-height: 1.6; max-width: 90ch; }
footer .fbar .copy { white-space: nowrap; }
@media (max-width: 760px) { footer .cols { grid-template-columns: 1fr 1fr; } footer .fbrand { grid-column: 1 / -1; } footer .fbar { flex-direction: column; } }

/* ---- list rows never scroll sideways: long names are cut with an ellipsis ---- */
.row { grid-template-columns: 44px minmax(0, 1fr) auto auto; }
.row > div { min-width: 0; }
.row .rsub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) { .row { grid-template-columns: 40px minmax(0, 1fr) auto; } .rows { overflow-x: hidden; } .rows:has(table) { overflow-x: auto; } }

/* ---- sign in / create account: one centred card ---- */
.authbox { max-width: 400px; margin: 40px auto 24px; }
.authtabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--card); border: 1px solid var(--line2); border-radius: var(--radius-s); padding: 3px; margin-bottom: 14px; }
.authtabs a { text-align: center; padding: 9px 8px; border-radius: 6px; font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none; }
.authtabs a[aria-current="page"] { background: var(--acc-soft); color: var(--acc); }
.authcard { padding: 24px; }
.authcard h1 { margin: 0; font-size: 24px; letter-spacing: -.02em; }
.authcard .sub { margin: 4px 0 6px; color: var(--muted); font-size: 14px; }
.authcard .authwhy { margin: 8px 0 0; padding: 9px 12px; background: var(--acc-soft); border-radius: 6px; font-size: 13.5px; color: var(--ink); }
.authcard label small { display: block; margin-top: 4px; color: var(--muted); font-weight: 400; font-size: 12.5px; }
.authcard .btn { width: 100%; margin-top: 6px; }
.authswitch, .authnote { text-align: center; margin: 14px 0 0; font-size: 14px; }
.authnote { color: var(--muted); font-size: 13px; margin-top: 6px; }
.authcard .authwhy { margin-bottom: 10px; }

/* ---- console icons ---- */
.pi { width: 15px; height: 15px; flex: none; vertical-align: -3px; margin-right: 6px; }
.seg a .pi { margin-right: 6px; opacity: .85; }
.tag .pi { width: 12px; height: 12px; margin-right: 4px; vertical-align: -2px; }
.filters .soon { display: inline-flex; align-items: center; gap: 9px; }
.filters .soon .pi { width: 17px; height: 17px; margin: 0; opacity: .7; }.seg a { display: inline-flex; align-items: center; }
.seg a .pi { width: 17px; height: 17px; vertical-align: 0; }
.tag .pi { width: 13px; height: 13px; }

/* tags with a console logo: logo and text on one line */
.tag { display: inline-flex; align-items: center; white-space: nowrap; line-height: 1.35; }
.tag .pi { margin: 0 4px 0 0; vertical-align: baseline; }

.gblurb { margin: 14px 0 0; max-width: 64ch; color: var(--muted); font-size: 14px; line-height: 1.6; }
.gblurb { margin-bottom: 18px; }

/* ---- cards: the tags and the price line up across a row, whatever the length of the title ---- */
.ctitle { min-height: 2.6em; }
.cbody .meta { align-content: flex-start; }

/* ---- numbered pager ---- */
.pager { display: flex; justify-content: center; align-items: center; gap: 6px; flex-wrap: wrap; margin: 26px 0; font-size: 14px; }
.pager ol { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; align-items: center; }
.pager li a, .pager li span[aria-current] { display: grid; place-items: center; min-width: 36px; height: 36px; padding: 0 8px; border-radius: var(--radius-s); border: 1px solid var(--line2); background: var(--card); color: var(--ink2); text-decoration: none; font-weight: 600; }
.pager li a:hover { background: var(--bg); border-color: var(--acc); color: var(--acc); }
.pager li span[aria-current] { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); }
.pager li.gap { color: var(--muted); padding: 0 2px; }
.pager .pn { display: inline-flex; gap: 6px; align-items: center; height: 36px; padding: 0 12px; border-radius: var(--radius-s); border: 1px solid var(--line2); background: var(--card); color: var(--ink2); text-decoration: none; font-weight: 600; }
.pager a.pn:hover { border-color: var(--acc); color: var(--acc); }
.pager .pn.off { opacity: .45; }
@media (max-width: 640px) { .pager li.far { display: none; } .pager .pn span { display: none; } .pager .pn { padding: 0 12px; font-size: 18px; } }

/* ---- theme button ---- */
#themeBtn { padding: 6px 8px; }
#themeBtn svg { width: 17px; height: 17px; display: block; }

/* ---- footer on the light theme: the logo follows the text colour ---- */
footer .brand .wm { color: var(--ink); }
footer .brand .wm i { color: var(--acc); }

/* ---- forms and notices ---- */
.authwhy.ok { background: var(--good-soft); color: var(--good); }
.forgot { margin: 2px 0 8px; font-size: 13.5px; } .forgot a { color: var(--acc); }
.contactbox { max-width: 680px; margin: 28px auto 24px; }
.contactbox .page-head { padding-top: 0; }
.contactbox .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contactbox select, .contactbox textarea { width: 100%; font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--line2); border-radius: var(--radius-s); padding: 10px 12px; }
.contactbox textarea { resize: vertical; min-height: 130px; line-height: 1.5; }
.contactbox label small { color: var(--muted); font-weight: 400; }
@media (max-width: 640px) { .contactbox .two { grid-template-columns: 1fr; } }
.prose .lead { font-size: 17px; color: var(--ink); line-height: 1.55; }
.prose ul { margin: 0 0 12px; padding-left: 20px; color: var(--ink2); } .prose li { margin: 4px 0; }
.prose code { background: var(--bg); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; font-size: 13px; }
.contactbox label small { display: inline; margin: 0; }

/* ---- cookie banner ---- */
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; padding: 12px; }
.consent[hidden] { display: none; }
.consent .cwrap { max-width: 980px; margin: 0 auto; background: var(--card); color: var(--ink); border: 1px solid var(--line2); border-radius: var(--radius); box-shadow: 0 12px 40px rgba(0, 0, 0, .38); padding: 16px 18px; display: grid; gap: 12px; }
.consent .ctext p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--ink2); }
.consent .ctext a { color: var(--acc); }
.consent .cbtns { display: flex; gap: 8px; flex-wrap: wrap; }
.consent .cbtns .btn { min-width: 0; }
.consent .cpanel { display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; }
.consent .cpanel[hidden], .consent .cmain[hidden] { display: none; }
.consent .crow { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.consent .crow input { margin-top: 4px; width: 17px; height: 17px; accent-color: var(--acc); flex: none; }
.consent .crow small { display: block; color: var(--muted); font-weight: 400; font-size: 12.5px; }
@media (min-width: 760px) { .consent .cwrap { grid-template-columns: 1fr auto; align-items: center; } .consent .cpanel { grid-column: 1 / -1; } }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.linkbtn:hover { color: var(--acc); }

/* ---- admin additions ---- */
.todo { margin: 0 0 18px; padding-left: 20px; line-height: 1.7; } .todo a { color: var(--acc); }
.note.ok { background: var(--good-soft); color: var(--good); border-radius: 6px; padding: 9px 12px; font-size: 14px; }
.btn.sm { padding: 5px 10px; font-size: 12.5px; }
.form.inline { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; max-width: 560px; margin: 14px 0; }
.form.inline label { flex: 1 1 240px; }
.admin .atabs { flex-wrap: wrap; }

/* ---- platform picker ---- */
.platsel { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pchip { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 6px 13px; border-radius: 5px; border: 1px solid var(--line2); background: var(--card); color: var(--ink2); font-size: 14px; font-weight: 600; text-decoration: none; line-height: 1; }
.pchip .pi { width: 17px; height: 17px; margin: 0; }
a.pchip:hover { border-color: var(--acc); color: var(--acc); }
.pchip[aria-pressed="true"] { background: var(--acc-soft); border-color: var(--acc); color: var(--acc); }
.pchip.off { opacity: .55; cursor: not-allowed; }
.pchip.off small { font-weight: 500; font-size: 11px; color: var(--muted); }
.filters .platsel { margin-right: 8px; }

/* ---- phones, built like the competitors': one slim header row with a menu button, and the platforms in one scrollable row ---- */
@media (max-width: 640px) {
  .top .wrap { display: flex !important; flex-wrap: nowrap; align-items: center; justify-content: space-between; height: 56px; min-height: 0; padding: 0 16px; gap: 12px; }
  .top .brand .wm { font-size: 21px !important; }
  .top .nav { display: none !important; }
  .top .tools { margin: 0 0 0 auto; gap: 10px; flex-wrap: nowrap; }   /* room between the buttons, and the same side margin as the page */
  .top .tools .wl-link, .top .tools .signin, .top .tools .acct { display: none !important; }   /* sign in and account are in the menu on a phone */
  .top .tools .chip-btn, .top .tools .region summary, .top .tools .acct summary, .top #themeBtn { height: 36px; min-height: 36px; box-sizing: border-box; border-radius: 10px; }
  .top .tools .chip-btn.signin { padding: 0 13px; font-size: 14px; }
  .top .tools .region summary { padding: 0 8px; gap: 5px; }
  .top .tools .region summary .code, .top .tools .region summary .cur { display: none; }
  .top .tools .acct summary { padding: 0 6px; }
  .top #themeBtn { display: none; }   /* on a phone the theme switch is in the menu */
  .region .menu, .acct .menu { position: fixed; left: 12px; right: 12px; top: 62px; width: auto; }

  /* the platform picker: one row you can swipe sideways, a check on what is selected */
  .platsel { display: flex; flex-wrap: nowrap; gap: 8px; width: auto; margin: 0 -16px; padding: 2px 16px 4px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; -webkit-mask-image: linear-gradient(90deg, #000 90%, transparent); mask-image: linear-gradient(90deg, #000 90%, transparent); }
  .platsel::-webkit-scrollbar { display: none; }
  .filters .platsel { margin-right: -16px; width: auto; }
  .pchip { flex: 0 0 auto; scroll-snap-align: start; justify-content: center; flex-wrap: nowrap; min-height: 38px; padding: 0 14px; border-radius: 5px; font-size: 14px; gap: 6px; white-space: nowrap; }
  .pchip .pi { width: 17px; height: 17px; }
  .pchip[aria-pressed="true"]::before { content: '✓'; font-size: 13px; font-weight: 800; }
  .pchip.off { gap: 6px; }
  .pchip.off small { flex-basis: auto; margin: 0; font-size: 11px; line-height: 1; }
}
@media (max-width: 380px) {
  .top .wrap { padding: 0 12px; gap: 8px; }
  .top .brand .wm { font-size: 19px !important; }
  .top .tools { gap: 8px; }
  .top .tools .chip-btn.signin { padding: 0 11px; font-size: 13.5px; }
}@media (max-width: 340px) {   /* very small phones */
  .top .wrap { padding: 0 10px; gap: 6px; }
  .top .brand .wm { font-size: 17px !important; }
  .top .tools { gap: 6px; }
  .top .tools .region summary::after { display: none; }
  .top .tools .region summary { padding: 0 7px; }
  .top .tools .chip-btn.signin { padding: 0 10px; font-size: 13px; }
}

/* ---- the phone menu: a bottom sheet ---- */
.mbtn { display: none; }
.msheet { display: none; }
@media (max-width: 640px) {
  .top .mbtn { display: grid; place-items: center; width: 36px; height: 36px; box-sizing: border-box; border-radius: 10px; border: 1px solid var(--line2); background: var(--card); color: var(--ink2); cursor: pointer; padding: 0; text-decoration: none; }
  .top .mbtn svg { width: 20px; height: 20px; }
  .msheet:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 80; }
  .mback { position: absolute; inset: 0; background: rgba(0, 0, 0, .62); }
  .mcard { position: absolute; left: 0; right: 0; bottom: 0; max-height: 90vh; overflow-y: auto; background: var(--card); color: var(--ink); border-radius: 20px 20px 0 0; padding: 8px 20px calc(18px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 40px rgba(0, 0, 0, .45); animation: msUp .22s ease-out; }
  .mgrab { width: 46px; height: 4px; border-radius: 2px; background: var(--line2); margin: 4px auto 12px; }
  .mhead { display: flex; justify-content: space-between; align-items: center; padding: 0 0 14px; border-bottom: 1px solid var(--line2); }
  .mhead b { font-size: 18px; }
  .mx { display: grid; place-items: center; width: 40px; height: 40px; margin-right: -8px; border: 0; background: none; color: var(--ink2); cursor: pointer; border-radius: 10px; }
  .mx svg { width: 22px; height: 22px; }
  .mlist { list-style: none; margin: 0; padding: 6px 0 8px; }
  .mlist a { display: flex; align-items: center; gap: 18px; padding: 15px 4px; font-size: 17px; color: var(--ink); text-decoration: none; }
  .mlist a svg { width: 24px; height: 24px; flex: none; color: var(--ink2); }
  .mlist a[aria-current="page"] { color: var(--acc); font-weight: 650; }
  .mlist a[aria-current="page"] svg { color: var(--acc); }
  .mfoot { display: flex; gap: 12px; align-items: center; padding-top: 16px; border-top: 1px solid var(--line2); }
  .mfoot .mlogin { flex: 1; display: grid; place-items: center; min-height: 48px; border-radius: 12px; text-decoration: none; font-size: 16px; font-weight: 600; }
  .mfoot .mout { flex: 1; margin: 0; }
  .mfoot .mout .btn { width: 100%; min-height: 48px; border-radius: 12px; font-size: 16px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
  .mfoot .mout .btn svg { width: 20px; height: 20px; }
  .mfoot .themebtn { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--line2); background: var(--card); color: var(--ink2); cursor: pointer; padding: 0; }
  .mfoot .themebtn svg { width: 22px; height: 22px; }
}
@keyframes msUp { from { transform: translateY(40px); opacity: .6; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .mcard { animation: none !important; } }
.steamcredit { margin-top: 18px; }
#otherStores .rows table { width: 100%; }

/* ---- filter dropdowns under the platform chips: squared, like the competitors' ---- */
.fbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.fdrop { position: relative; }
.fdrop summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 6px 12px; border: 1px solid var(--line2); border-radius: 5px; background: var(--card); color: var(--ink2); font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.fdrop summary::-webkit-details-marker { display: none; }
.fdrop summary::after { content: ''; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .7; margin-left: 2px; }
.fdrop summary:hover { border-color: var(--acc); }
.fdrop.on summary { background: var(--acc-soft); border-color: var(--acc); color: var(--acc); }
.fdrop .menu { position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; min-width: 190px; max-height: 320px; overflow-y: auto; background: var(--card); border: 1px solid var(--line2); border-radius: 6px; box-shadow: var(--shadow); padding: 6px; }
.fdrop .menu ul { list-style: none; margin: 0; padding: 0; }
.fdrop .menu a { display: block; padding: 8px 10px; border-radius: 4px; font-size: 14px; color: var(--ink); text-decoration: none; }
.fdrop .menu a:hover { background: var(--bg); }
.fdrop .menu a[aria-current="true"] { background: var(--acc-soft); color: var(--acc); font-weight: 600; }
.bgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin: 10px 0 26px; }
.btile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 10px; align-content: start; }
.btile:hover { border-color: var(--acc); }
.bmain { display: grid; gap: 2px; text-decoration: none; color: var(--ink); } .bmain b { font-size: 16px; } .bmain span { font-size: 13px; color: var(--muted); }
.bchips { display: flex; gap: 6px; flex-wrap: wrap; margin: 0; } .bchips a { font-size: 12.5px; padding: 3px 10px; border: 1px solid var(--line2); border-radius: 99px; color: var(--ink2); text-decoration: none; } .bchips a:hover { border-color: var(--acc); color: var(--acc); } .bchips span { color: var(--muted); } .bchips .off { font-style: normal; font-size: 12.5px; padding: 3px 10px; border: 1px dashed var(--line); border-radius: 99px; color: var(--faint); cursor: default; } .bchips .off span { color: var(--faint); }
ul.plain { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.srow .plinks { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; }
.team { display: grid; gap: 14px; margin: 12px 0 8px; }
.person { display: flex; gap: 16px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.person h3 { margin: 0; font-size: 17px; } .person .role { margin: 2px 0 8px; font-size: 13px; color: var(--muted); font-weight: 600; } .person p { margin: 0 0 8px; }
.person .plinks { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 4px 0 0; font-size: 14px; }
.ph { flex: none; width: 96px; height: 96px; border-radius: 50%; object-fit: cover; background: var(--line); }
.ph.sm { width: 40px; height: 40px; }
.ph.ini { display: grid; place-items: center; font-weight: 700; font-size: 26px; color: var(--ink2); } .ph.sm.ini { font-size: 14px; }
@media (max-width: 520px) { .person { flex-direction: column; } }
.form textarea { background: var(--card); border: 1px solid var(--line2); border-radius: var(--radius-s); padding: 9px 11px; font: inherit; font-weight: 400; color: var(--ink); width: 100%; box-sizing: border-box; }
.form input[type=file] { font-weight: 400; }
.fdrop .menu a.mc { display: flex; align-items: center; gap: 9px; }
.fdrop .menu a.mc::before { content: ''; flex: none; width: 15px; height: 15px; box-sizing: border-box; border: 1.5px solid var(--line2); border-radius: 3px; background: var(--card); }
.fdrop .menu a.mc.sel::before { background: var(--acc); border-color: var(--acc); box-shadow: inset 0 0 0 2.5px var(--card); }
.fclear { font-size: 14px; font-weight: 600; color: var(--acc); text-decoration: none; padding: 6px 4px; }
@media (max-width: 640px) { .fdrop .menu { position: fixed; left: 12px; right: 12px; bottom: 12px; top: auto; max-height: 60vh; box-shadow: 0 10px 40px rgba(0, 0, 0, .45); } }
/* ---- filter area, tidied: two rows (platforms; filters on the left and Sort on the right), every box the same height ---- */
.filters { display: block; }
.filters .platsel { margin-right: 0; }
.pchip, .fdrop summary { min-height: 38px; box-sizing: border-box; padding-top: 0; padding-bottom: 0; }
.pchip { padding-left: 14px; padding-right: 14px; }
.fdrop summary { padding-left: 14px; padding-right: 12px; }
.fbar { margin-top: 12px; gap: 8px; }
.fbar + .cards { margin-top: 22px !important; }
.fbar .fsort { margin-left: auto; }
.fbar .fsort summary { font-weight: 500; color: var(--muted); }
.fbar .fsort summary b { font-weight: 600; color: var(--ink); }
.fbar .fsort .menu { left: auto; right: 0; }
@media (max-width: 640px) {
  .platsel { scroll-padding-left: 16px; }   /* the first box keeps its side space instead of snapping to the screen edge */
  .fbar { flex-wrap: nowrap; overflow-x: auto; margin: 10px -16px 0; padding: 2px 16px 4px; scrollbar-width: none; scroll-padding-left: 16px; scroll-snap-type: x proximity; }
  .fbar::-webkit-scrollbar { display: none; }
  .fbar .fdrop, .fbar .fclear { flex: 0 0 auto; scroll-snap-align: start; }
  .fbar .fclear { white-space: nowrap; padding: 0 6px; }
  .fbar .fsort { order: -1; margin-left: 0; }
  .fbar + .cards { margin-top: 18px !important; }
}
/* ---- a game on several platforms: linked platform tags, and the tag in the Where to buy rows ---- */
a.tag { text-decoration: none; }
a.tag:hover { filter: brightness(1.2); }
#where .store .tag { margin-right: 6px; font-size: 11.5px; vertical-align: 1px; }

.price .onplat { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 6px; white-space: nowrap; }

/* the cheapest version's platform sits on its own small line under the price, so it never wraps beside it */
.card .price { flex-wrap: wrap; }
.card .price .onplat { flex-basis: 100%; margin: 1px 0 0; font-size: 12px; font-weight: 500; color: var(--muted); }

/* Black Friday: the key dates and the note on the home page */
.promo { position: relative; display: flex; align-items: center; min-height: 104px; padding: 18px 22px; overflow: hidden; isolation: isolate; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.promo::before { content: ""; position: absolute; inset: 0; z-index: 0; background: radial-gradient(120% 170% at 100% 50%, var(--acc-soft), transparent 64%); }
.promo.free::before { background: radial-gradient(120% 170% at 100% 50%, var(--good-soft), transparent 64%); }
.promo:hover { border-color: var(--line2); }
.promo .pt { position: relative; z-index: 2; display: grid; gap: 4px; max-width: 60%; }
.promo .pt b { color: var(--ink); font-size: 18px; font-weight: 650; letter-spacing: -.015em; }
.promo .pt span { color: var(--muted); font-size: 14px; }
.promo .pcov { position: absolute; z-index: 1; top: 0; right: 0; bottom: 0; display: flex; justify-content: flex-end; width: min(46%, 440px); pointer-events: none; }
.promo .pcov img { flex: 0 0 auto; width: 38%; max-width: 160px; height: 100%; object-fit: cover; margin-left: -16px; }
.promo .pcov img:first-child { margin-left: 0; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 70%); mask-image: linear-gradient(to right, transparent 0, #000 70%); }   /* the leftmost picture fades into the note */
.promo .pcov img:only-child { width: 70%; max-width: 300px; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 60%); mask-image: linear-gradient(to right, transparent 0, #000 60%); }
@media (max-width: 560px) { .promo { padding: 16px 16px; } .promo .pt { max-width: 68%; } .promo .pt b { font-size: 16px; } .promo .pt span { font-size: 13px; } .promo .pcov { width: 42%; } .promo .pcov img:nth-child(n+2) { display: none; } .promo .pcov img, .promo .pcov img:only-child { width: 100%; max-width: none; margin-left: 0; } }
.faqs details.tile p { color: var(--ink2); }

/* Free games */
.card .also { position: relative; z-index: 2; font-size: 13px; margin-top: 4px; }
.card .also a { color: var(--acc); text-decoration: none; }
.card .also a:hover { text-decoration: underline; }

/* ---- the list pages (not the home page): 36 games a page, 4 cards a row on a wide screen, bigger cards ---- */
.cards:not([class*="fit"]) { gap: 18px; }
@media (min-width: 1181px) { .cards:not([class*="fit"]) { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 601px) and (max-width: 1180px) { .cards:not([class*="fit"]) { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
@media (max-width: 600px) { .cards:not([class*="fit"]) { gap: 10px; } }

/* ---- the home page: 4 cards a row (3 on a tablet, 2 on a phone); Hottest deals and Top discounts show 2 rows, New releases 1 row ---- */
.cards.home4 { gap: 18px; }
@media (min-width: 1181px) { .cards.home4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .cards.home4.fit8 > :nth-child(n+9) { display: none; } .cards.home4.fit4 > :nth-child(n+5) { display: none; } }
@media (min-width: 601px) and (max-width: 1180px) { .cards.home4 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } .cards.home4.fit8 > :nth-child(n+7) { display: none; } .cards.home4.fit4 > :nth-child(n+4) { display: none; } }
@media (max-width: 600px) { .cards.home4 { gap: 10px; } .cards.home4.fit8 > :nth-child(n+9) { display: none; } .cards.home4.fit4 > :nth-child(n+5) { display: none; } }

/* Admin > Social > Reddit: how the thread will look */
.rdprev { max-height: 420px; overflow: auto; padding: 12px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card2); font-size: 14px; line-height: 1.55; }
.rdprev p { margin: 8px 0; }
.rdprev ol { margin: 8px 0; padding-left: 28px; }
.rdprev li { margin: 5px 0; }
.rdprev a { color: var(--acc); }
.rdprev hr { border: 0; border-top: 1px solid var(--line); margin: 12px 0; }
