/* ReviewPulse: calmer UI, loaded last.
   One card style (1px line, 12px radius, no notches or glows), neutral greys instead of violet-tinted ones,
   no background blobs or star field, flatter nesting inside cards, a foldable sidebar and a compact review filter. */

/* ---------- tokens: neutral, no violet tint ---------- */
:root, :root[data-theme="dark"] {
  --frame: #0b0b0c; --card: #131315; --raised: #1b1b1e; --active: #242428;
  --border: #2a2a2f; --rule: #212125; --control: #3a3a40;
  --text: #f3f3f4; --muted: #b3b3ba; --faint: #8f8f97;
  --radius-card: 12px;
}
:root[data-theme="light"] {
  --frame: #f5f5f3; --card: #ffffff; --raised: #f3f3f0; --active: #e9e9e5;
  --border: #e1e1dc; --rule: #ececE8; --control: #cdcdc7;
  --text: #111113; --muted: #55555c; --faint: #6b6b72;
}
body::before, body::after, #fx-sky { display: none !important; }
.side { background: var(--frame); backdrop-filter: none; -webkit-backdrop-filter: none; }
.top { background: var(--frame); }
.top::after { display: none; }
.foot::before { background: var(--border); }

/* ---------- one card style ---------- */
.card, .kpi, .boss, .locked, .lay-col, .mk-idea, .cm-paste, .plan {
  clip-path: none !important; border-radius: var(--radius-card) !important;
  background: var(--card) !important; box-shadow: inset 0 0 0 1px var(--border) !important;
}
.kpi.lead { background: var(--card) !important; }
.kpi .l { color: var(--muted); }
.kpi.lead .v { background: none; -webkit-background-clip: initial; background-clip: initial; color: var(--accent); filter: none; }
.kpi::after { display: none; }
.card-h h2::before { display: none; }
.title-row h1::after { display: none; }
.hero > svg.hero-pulse { display: none; }

/* Boxes inside a card become rows, so nothing is three boxes deep. */
.card .boss { background: transparent !important; box-shadow: none !important; border-radius: 0 !important; border-top: 1px solid var(--rule); padding: 16px 0; }
.card .boss:first-of-type { border-top: 0; }
.card .card, .card .kpi { box-shadow: none !important; background: var(--raised) !important; }
.boss-rank { clip-path: none !important; border-radius: 10px; }

/* ---------- buttons: one shape, no shine ---------- */
.btn.xp, .btn.primary, .band-btn, .band-ghost { clip-path: none !important; border-radius: 8px; }
.btn.xp::after, .btn.primary::after, .rp-trial::after { display: none !important; }

/* The "New" banner between the numbers and the charts on Overview: the sidebar already links there. */
#cm-teaser { display: none !important; }

/* ---------- sidebar ---------- */
.nav a { transform: none !important; }
.nav a:hover { background: var(--raised); }
.nav a[aria-current="page"] { background: var(--active); }
.nav a[aria-current="page"]::before { box-shadow: none; }
.nav a[aria-current="page"] > svg:first-child { filter: none; }
.nav-group::after { background: var(--border); }
.nav.nav-fold .nav-group[data-acc] {
  cursor: pointer; user-select: none; margin: 2px 0 0; padding: 9px 12px; border-radius: 8px;
  font: 600 12.5px/16px var(--font); letter-spacing: 0; text-transform: none; color: var(--muted);
}
.nav.nav-fold .nav-group[data-acc]::after { display: none; }
.nav.nav-fold .nav-group[data-acc]:hover { background: var(--raised); color: var(--text); }
.nav.nav-fold .nav-group[data-acc]:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.nav.nav-fold .nav-group.ng-here { color: var(--text); }
.nav .ng-t { flex: 1; min-width: 0; }
.nav .ng-n { font: 500 11px/1 var(--mono); color: var(--faint); }
.nav .ng-chev { width: 14px; height: 14px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 160ms ease; }
.nav .nav-group[aria-expanded="true"] .ng-chev { transform: rotate(90deg); }
.nav.nav-fold a { padding-left: 18px; }
.nav a[hidden] { display: none !important; }

/* ---------- reviews filter: one row ---------- */
.rf2 .rf-main { display: grid; grid-template-columns: minmax(220px, 1.4fr) repeat(2, minmax(140px, 1fr)) minmax(180px, 1.4fr) auto; gap: 10px 12px; align-items: end; }
.rf2 .rf-main .rf-sel, .rf2 .rf-main input { width: 100%; box-sizing: border-box; }
.rf2 .rf-q { grid-column: auto; }
.rf2 .rf-morebtn .btn { height: 34px; white-space: nowrap; }
.rf2 .rf-grid { margin-top: 12px; padding-top: 12px; }
@media (max-width: 1100px) { .rf2 .rf-main { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rf2 .rf-lang, .rf2 .rf-q { grid-column: span 2; } }

@media (prefers-reduced-motion: reduce) { .nav .ng-chev { transition: none; } }

/* ---------- Target audience ---------- */
.ta-split { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: var(--raised); margin: 4px 0 10px; }
.ta-split i { display: block; height: 100%; }
.ta-split .w, .ta-legend i.w { background: var(--accent); }
.ta-split .m, .ta-legend i.m { background: var(--cyan); }
.ta-legend { display: flex; gap: 18px; font-size: 13px; margin-bottom: 14px; }
.ta-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ta-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.ta-tbl td { font-size: 13px; }
.ta-ages { display: flex; flex-direction: column; gap: 8px; }
.ta-age { display: grid; grid-template-columns: 96px minmax(0, 1fr) 44px; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.ta-age b { font-weight: 500; color: var(--text); text-align: right; font-variant-numeric: tabular-nums; }
.ta-age.core span { color: var(--text); font-weight: 500; }
.ta-bar { height: 8px; border-radius: 999px; background: var(--raised); overflow: hidden; }
.ta-bar i { display: block; height: 100%; border-radius: 999px; background: var(--faint); }
.ta-age.core .ta-bar i, .ta-share .ta-bar i { background: var(--accent); }
.ta-share { display: grid; grid-template-columns: 46px minmax(80px, 1fr); align-items: center; gap: 10px; min-width: 150px; }
.ta-reg .good { color: var(--positive, var(--pos-ink)); font-weight: 500; }
.ta-imp { list-style: none; margin: 0; padding: 0; }
.ta-imp li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--rule); font-size: 14px; line-height: 21px; }
.ta-imp li:first-child { border-top: 0; padding-top: 0; }
.ta-imp .pill { justify-self: start; }
.ta-how summary { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; cursor: pointer; list-style: none; }
.ta-how summary::-webkit-details-marker { display: none; }
.ta-src { margin: 14px 0 0; padding-left: 18px; font-size: 13px; line-height: 20px; color: var(--muted); }
.ta-src li { margin-bottom: 6px; }
.ta-src a { color: inherit; text-decoration: underline; }
@media (max-width: 700px) { .ta-imp li { grid-template-columns: 1fr; gap: 6px; } }
.ta-age span small { display: block; font-size: 11px; color: var(--faint); font-weight: 400; }
.kpi .v span.sm { display: block; font-size: 24px; overflow: hidden; text-overflow: ellipsis; }

/* ---------- home page: one clear path ---------- */
/* The hero already has the Studios / Publishers / Investors switch; the sidebar copy of it is hidden here. */
body.rp-home .rp-navrole { display: none; }
/* Order: who it is for, headline, one line, search, examples to try, trial note, live numbers. */
.home2 .h2-copy > .rp-roles { order: 1; }
.home2 .h2-copy > h1 { order: 2; }
.home2 .h2-copy > .lede { order: 3; }
.home2 .h2-copy > .hero-search { order: 4; }
.home2 .h2-copy > .picks { order: 5; margin-top: -10px; }
.home2 .h2-copy > .rp-trial { order: 6; }
.home2 .h2-copy > .hstats { order: 7; }
.home2 .h2-copy > :not(.rp-roles):not(h1):not(.lede):not(.hero-search):not(.picks):not(.rp-trial):not(.hstats) { order: 8; }
/* Decoration and duplicates out: the pulse line, the four door links (the cards below cover them), the scrolling ticker. */
.home2 .rp-pulse, .home2 .rp-doors, .rp-ticker, .rp-floor { display: none !important; }
.home2 .hero-search input { font-size: 16px; }
/* Trial note: a quiet line, not a glowing pill. */
.home2 .rp-trial { background: none !important; box-shadow: none !important; border: 0 !important; padding: 0 !important; align-self: flex-start; }
/* Game wall: flat, no tilt or scanlines. */
.h2-art { perspective: none; }
.wall, .h2-art:hover .wall { transform: none !important; animation: none !important; opacity: 1 !important; box-shadow: inset 0 0 0 1px var(--border) !important; }
/* The wall stands still (it drifted forever), and nothing waits for a scroll to appear. */
.wall-track { animation: none !important; }
.home2 .rv { opacity: 1 !important; transform: none !important; transition: none !important; }
.wall::before { display: none !important; }
/* Tool cards: one card style; the "Included" chip and the category label repeated on every card are gone. */
.rs-card { clip-path: none !important; border-radius: var(--radius-card); background: var(--card) !important; box-shadow: inset 0 0 0 1px var(--border) !important; }
.rs-card:hover { box-shadow: inset 0 0 0 1px var(--accent) !important; transform: translateY(-2px); }
.rs-top .hud, .rs-top .rp-tchip.t-own { display: none !important; }
/* Bottom call to action: a plain card. */
.band { clip-path: none !important; border-radius: var(--radius-card) !important; background: var(--card) !important; box-shadow: inset 0 0 0 1px var(--border); color: var(--text) !important; }
.band-btn { clip-path: none !important; border-radius: 8px !important; background: var(--accent) !important; color: #140a00 !important; }
.band-ghost { clip-path: none !important; border-radius: 8px !important; box-shadow: inset 0 0 0 1px var(--control) !important; color: var(--text) !important; }
.hs-back { margin-top: 8px; }
@media (prefers-reduced-motion: reduce) { .rs-card:hover { transform: none; } }
/* How it works, in three steps, under the hero. */
.hs-steps { margin: 8px 0 40px; }
.hs-steps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.hs-steps li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; padding: 18px; border-radius: var(--radius-card); background: var(--card); box-shadow: inset 0 0 0 1px var(--border); }
.hs-n { width: 32px; height: 32px; border-radius: 9px; background: var(--accent-soft); color: var(--accent-ink); font: 700 15px/32px var(--display); text-align: center; }
:root[data-theme="dark"] .hs-n, :root:not([data-theme]) .hs-n { background: rgba(255, 181, 71, .14); color: var(--accent); }
.hs-steps b { display: block; font: 600 16px/22px var(--display); margin-bottom: 4px; }
.hs-steps p { margin: 0 0 8px; color: var(--muted); font-size: 14px; line-height: 20px; }
.hs-steps a, .hs-steps .link-btn { font-size: 13px; font-weight: 500; color: var(--accent); }
@media (max-width: 900px) { .hs-steps ol { grid-template-columns: 1fr; } }
/* Home hero, calmer: plain role switch, live numbers that support the headline instead of competing with it. */
.home2 .rp-roles button { text-transform: none; letter-spacing: 0; font: 600 14px/1 var(--font); }
.home2 .rp-roles i { display: none; }
.home2 .rp-roles button[aria-pressed="true"] { background: var(--accent); color: #140a00; box-shadow: none; }
.home2 .hstats.rp-live { gap: 6px 28px; padding-top: 16px; border-top: 1px solid var(--rule); }
.home2 .hstats.rp-live b { font: 600 20px/26px var(--display); color: var(--text); text-shadow: none; }
.home2 .hstats.rp-live span, .home2 .hstats.rp-live > div > :not(b) { font-size: 13px; color: var(--muted); }
.home2 .rp-trial { font-size: 13px; }
.home2 h1.split { letter-spacing: -0.015em; }

/* ---------- sidebar sections v2: icon tile, count chip, a guide line for the tools inside ---------- */
.nav.nav-fold { gap: 1px; }
.nav.nav-fold .nav-group[data-acc] {
  display: flex; align-items: center; gap: 10px; margin: 3px 0 0; padding: 6px 8px; min-height: 42px; border-radius: 10px;
  font: 600 14px/18px var(--font); color: var(--text); letter-spacing: 0; text-transform: none;
  transition: background-color 150ms ease;
}
.nav.nav-fold .nav-group[data-acc][aria-expanded="true"] { background: var(--raised); }
.nav .ng-ic { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 9px; background: var(--accent-soft); color: var(--accent-ink); transition: background-color 150ms ease, color 150ms ease; }
:root[data-theme="dark"] .nav .ng-ic { background: rgba(255, 181, 71, .12); color: var(--accent); }
.nav .ng-ic svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nav .nav-group[aria-expanded="true"] .ng-ic, .nav .nav-group.ng-here .ng-ic { background: var(--accent); color: #140a00; }
.nav .ng-n { min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--raised); box-shadow: inset 0 0 0 1px var(--border); display: inline-grid; place-items: center; font: 500 11px/1 var(--mono); color: var(--muted); }
.nav .ng-n:empty { display: none; }
.nav .ng-chev { color: var(--faint); }
/* The tools of an open section hang off a thin line under its icon. */
.nav.nav-fold a.ng-item { position: relative; margin-left: 22px; padding-left: 16px; height: 34px; font-size: 13.5px; border-radius: 0 8px 8px 0; color: var(--muted); }
.nav.nav-fold a.ng-item::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--border); }
.nav.nav-fold a.ng-item.ng-last { margin-bottom: 6px; }
.nav.nav-fold a.ng-item > svg:first-child { width: 15px; height: 15px; opacity: .8; }
.nav.nav-fold a.ng-item:hover { color: var(--text); background: var(--raised); }
.nav.nav-fold a.ng-item[aria-current="page"] { color: var(--text); font-weight: 600; background: var(--accent-soft); }
:root[data-theme="dark"] .nav.nav-fold a.ng-item[aria-current="page"] { background: rgba(255, 181, 71, .1); }
.nav.nav-fold a.ng-item[aria-current="page"]::after { width: 2px; left: -.5px; background: var(--accent); }
.nav.nav-fold a.ng-item[aria-current="page"]::before { display: none; }
.nav.nav-fold a.ng-item[aria-current="page"] > svg:first-child { color: var(--accent); opacity: 1; }
@media (prefers-reduced-motion: reduce) { .nav.nav-fold .nav-group[data-acc], .nav .ng-ic { transition: none; } }

/* ---------- IndieToolChest badge: under the game wall, never under the top bar ---------- */
.rp-itc-hero { top: calc(100% + 18px) !important; bottom: auto !important; margin: 0 !important; }
.rp-itc-hero img { width: 210px !important; height: 42px !important; }

/* ---------- search suggestions: bigger game art ---------- */
.suggest button { grid-template-columns: 112px minmax(0, 1fr) auto; padding: 7px 8px; }
.suggest img { width: 112px; height: 42px; border-radius: 6px; }
/* One line per label in the sidebar. */
.nav .ng-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav.nav-fold a.ng-item { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav.nav-fold .nav-group[data-acc] { gap: 9px; padding-right: 6px; }
/* IndieToolChest badge v2: top of the art column, in the first screen; the wall starts below it. */
.home2 .h2-art .rp-itc-hero { top: 0 !important; bottom: auto !important; left: 50% !important; transform: translateX(-50%) !important; margin: 0 !important; display: block !important; }
.home2 .h2-art .rp-itc-hero img { width: 230px !important; height: 46px !important; }
.home2 .h2-art > .wall { top: 64px !important; }

/* Target audience: what else these players play */
.ta-borrow { margin: 0 0 16px; padding: 14px 16px; border-radius: var(--radius-sm); background: linear-gradient(135deg, var(--accent-soft), transparent 70%), var(--raised); border: 1px solid var(--border); }
.ta-bchips { display: flex; flex-wrap: wrap; gap: 8px; }
.ta-bchip { display: inline-flex; flex-direction: column; gap: 2px; padding: 8px 12px; border-radius: 10px; background: var(--card); border: 1px solid var(--border); max-width: 260px; }
.ta-bchip b { font-weight: 600; font-size: 13.5px; }
.ta-bchip span { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ta-cpbar { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin: 0 0 10px; }
.ta-cpg { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; min-width: 0; }
.ta-cpg img { width: 64px; height: 30px; object-fit: cover; border-radius: 4px; flex: none; background: var(--raised); }
.ta-cpg b { font-weight: 500; }
.ta-cpg span { display: flex; flex-direction: column; min-width: 0; }
.ta-cpt .pill { font-size: 11.5px; margin: 1px 2px 1px 0; }
