/* ReviewPulse app system (Nov 2026), loaded last. One system for every app screen, shared with the landing
   page: tasteskill 2.5.1 deal (type funnel, radius soft) on the client's amber over paper grey.
   App-screen rules from the skill: quiet borders on repeated panels, no heavy shadows, no icon tiles,
   no gradients or glows, numbers right-aligned in tabular figures, charts in ink with the accent once,
   running text in full ink, every state built (empty, loading, error, locked).
   Redesign order: type, colour, frame, states, then stock components. */

/* ================= 1. tokens ================= */
:root[data-theme="light"] {
  --frame: #e8e8e3; --sheet: #e8e8e3; --card: #fbfbf8; --raised: #f1f1ec; --active: #e4e4de;
  --border: rgba(24, 23, 21, .12); --rule: rgba(24, 23, 21, .08); --control: rgba(24, 23, 21, .2);
  --text: #181715; --muted: #5f5e5b; --faint: #6f6e6a;
  --accent: #8a5600; --accent-ink: #6b4300; --accent-soft: rgba(255, 181, 71, .24); --on-accent: #111111;
  --primary: #181715; --on-primary: #e8e8e3;
  --positive: #2f6b45; --negative: #a3332b;
  --pos-bg: rgba(47, 107, 69, .11); --pos-ink: #24563a; --neg-bg: rgba(163, 51, 43, .09); --neg-ink: #84261f;
  --warn-bg: rgba(255, 181, 71, .16); --warn-line: rgba(194, 128, 20, .4); --warn-ink: #6b4300;
  --grid: rgba(24, 23, 21, .08); --base: rgba(24, 23, 21, .28); --comp: rgba(24, 23, 21, .38); --dot-peer: #fbfbf8;
  --glass: rgba(251, 251, 248, .92);
  --ink-bar: rgba(24, 23, 21, .78);
}
:root[data-theme="dark"], :root:not([data-theme]) {
  --frame: #181715; --sheet: #181715; --card: #201f1d; --raised: #262523; --active: #302f2c;
  --border: rgba(232, 232, 227, .1); --rule: rgba(232, 232, 227, .07); --control: rgba(232, 232, 227, .2);
  --text: #e8e8e3; --muted: #b3b2ac; --faint: #9a9994;
  --accent: #ffb547; --accent-ink: #ffcf85; --accent-soft: rgba(255, 181, 71, .14); --on-accent: #111111;
  --primary: #e8e8e3; --on-primary: #181715;
  --positive: #86c79d; --negative: #ee8b80;
  --pos-bg: rgba(134, 199, 157, .12); --pos-ink: #a9dcbb; --neg-bg: rgba(238, 139, 128, .12); --neg-ink: #f5b1a9;
  --warn-bg: rgba(255, 181, 71, .1); --warn-line: rgba(255, 181, 71, .32); --warn-ink: #ffd699;
  --grid: rgba(232, 232, 227, .08); --base: rgba(232, 232, 227, .3); --comp: rgba(232, 232, 227, .4); --dot-peer: #201f1d;
  --glass: rgba(32, 31, 29, .92);
  --ink-bar: rgba(232, 232, 227, .78);
}
:root {
  --display: "Funnel Display", "Funnel Sans", system-ui, sans-serif;
  --font: "Funnel Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Funnel Sans", system-ui, sans-serif;
  --cyan: var(--accent); --magenta: var(--negative);
  --radius-card: 16px; --radius-sm: 10px; --control-h: 38px; --gap: 20px; --pad: 24px;
  /* the old HUD shapes and glows, switched off at the source */
  --notch: none; --btn-notch: none; --notch-edge: none; --cut: 0px; --cut-s: 0px; --glow: none; --scrim: none;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* ================= 2. type ================= */
html, body { font: 15px/1.5 var(--font); }
body { background: var(--frame); color: var(--text); }
body::before, body::after { display: none !important; }
h1, h2, h3, .h3, .title-row h1, .card-h h2, .side .brand, .lay-col h3 { font-family: var(--display) !important; font-weight: 400 !important; }
h1, .title-row h1 { font-size: clamp(32px, 1.4rem + 1.6vw, 46px) !important; line-height: 1.06 !important; letter-spacing: -0.035em !important; margin: 0; }
.title-row h1::after, .title-row h1::before { display: none !important; }
.card-h h2, section.card > h2 { font-size: 20px !important; line-height: 1.3 !important; letter-spacing: -0.015em !important; }
.h3, .card h3 { font-size: 16px; line-height: 1.35; letter-spacing: -0.01em; font-family: var(--font) !important; font-weight: 500 !important; }
.tbl td.r, .tbl th.r, .kpi .v, .num, .r, .boss-score, .ring span, .mk-ticket, .lc-fit b, .sy-nums b, td[data-l] b { font-variant-numeric: tabular-nums; }
/* eyebrow labels become plain sentence-case labels */
.hud, .kpi .l, .tbl th, .cx-th, .lc-flabel, .mk-facts dt, .rp-navrole > span, .rp-mx-g th, .rp-rec, .nav-sep, .badge, .kind {
  font-family: var(--font) !important; text-transform: none !important; letter-spacing: 0 !important;
}
.hud { font-size: 13px !important; font-weight: 500 !important; color: var(--muted) !important; }
/* running text in full ink; grey only for metadata */
.title-row .sub, .title-row p.sub { color: var(--text) !important; font-size: 17px; line-height: 1.5; max-width: 68ch; margin: 10px 0 0; }
.title-row .meta { color: var(--muted); font-size: 13px; margin-top: 10px; }
.card > p:not(.small):not(.muted), .cx-say p, .lc-det p, .mk-det p, .sy-terms, .fx-steps span, .gd-card p, .qbig p, .bq p { color: var(--text); }
.muted, .sub2, .aside, .small.muted, .muted.small { color: var(--muted); }
.small { font-size: 13px; line-height: 1.45; }

/* ================= 3. frame ================= */
.sheet { padding: 32px 40px 72px; }
@media (min-width: 1500px) { .sheet { padding-left: 56px; padding-right: 56px; } }
.grid { gap: var(--gap); margin-top: var(--gap); }
.title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin: 0 0 28px; }
.fresh { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; white-space: nowrap; padding-top: 10px; }
.fresh .link-btn, .link-btn { color: var(--accent); font-weight: 500; }

/* cards: one step off the page, a hairline, generous padding; never a box in a box */
.card, .kpi, .rp-plan, .rs-card, .rs-live, .rp-lk-card, .rp-prof-box, .boss, .mk-idea, .g-cap, .lay-col, .steps a, .price-hero > div, .lock-page .locked {
  clip-path: none !important; box-shadow: none !important; background-image: none !important;
}
.card { background: var(--card); border: 1px solid var(--border) !important; border-radius: var(--radius-card) !important; padding: var(--pad); }
.card-h { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.card-h .aside, .card-h .aside * { font-size: 13px; color: var(--muted); }
.card-h h2::before, .card-h h2::after { display: none !important; }
/* panels nested inside a card lose their own fill: rules separate them instead */
.card .card { border: 0 !important; border-top: 1px solid var(--rule) !important; border-radius: 0 !important; padding: 16px 0 0; background: transparent; }
.boss, .price-hero > div, .steps a, .lay-col { background: transparent !important; border: 1px solid var(--border); border-radius: 12px !important; }
.steps a:hover, .lay-col:hover { border-color: color-mix(in oklab, var(--text) 30%, transparent); background: transparent !important; transform: none !important; }

/* the game header on Overview: the game's own key art as a clean banner, the title on the page ground */
.hero { display: block !important; position: relative; min-height: 0 !important; margin: -32px -40px 28px !important; padding: 0 !important;
  background: none !important; background-image: none !important; border: 0 !important; overflow: hidden; }
@media (min-width: 1500px) { .hero { margin-left: -56px !important; margin-right: -56px !important; } }
.hero::before, .hero-pulse, .hero .hero-pulse { display: none !important; }
.hero-art { position: relative !important; inset: auto !important; display: block; height: clamp(160px, 18vw, 240px); background: var(--raised) center 30% / cover no-repeat;
  animation: none !important; transform: none !important; opacity: 1 !important; border-bottom: 1px solid var(--border); }
.hero > .title-row { padding: 28px 40px 0; margin: 0 !important; }
@media (min-width: 1500px) { .hero > .title-row { padding-left: 56px; padding-right: 56px; } }
.hero .title-row > div:first-child:has(.tier) { display: block !important; }
.tier { display: inline-flex !important; flex-direction: row !important; align-items: baseline; gap: 6px; width: auto !important; height: auto !important;
  margin: 0 0 14px !important; padding: 5px 10px !important; border-radius: 8px; background: var(--raised) !important; color: var(--text) !important; border: 1px solid var(--border); }
.tier b { font: 500 15px/1 var(--display) !important; }
.tier span { font: 500 13px/1 var(--font) !important; color: var(--muted); }
.live { animation: none !important; }

/* KPI strip: one panel with hairline columns, never a row of identical boxes */
.kpis { display: grid; gap: 1px !important; background: var(--border) !important; border: 1px solid var(--border) !important; border-radius: var(--radius-card) !important; overflow: hidden; }
.kpis[style*="--k:7"], .kpis[style*="--k:8"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpi { background: var(--card) !important; border: 0 !important; border-radius: 0 !important; padding: 18px 20px 20px !important; }
.kpi .l { font-size: 13px !important; line-height: 1.3 !important; font-weight: 500 !important; color: var(--muted) !important; }
.kpi .v { font: 400 clamp(24px, 1.1rem + 1vw, 34px)/1.1 var(--display) !important; letter-spacing: -0.03em !important; margin-top: 10px !important; color: var(--text) !important; }
.kpi .v small { font-size: 0.5em; color: var(--muted); margin-left: 2px; }
.kpi.lead { background: var(--card) !important; }
.kpi.lead .v { color: var(--text) !important; }
.kpi .s { font-size: 13px !important; line-height: 1.4 !important; color: var(--muted) !important; margin-top: 6px !important; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ================= 4. components ================= */
/* buttons: one pill shape; ink for the main action, amber only for upgrade, quiet outline for the rest */
.btn { border-radius: 999px !important; height: var(--control-h); padding: 0 18px; font: 500 14px/1 var(--font); clip-path: none !important; box-shadow: none !important; text-shadow: none !important;
  background: transparent; border: 1px solid var(--control); color: var(--text); }
.btn:hover { background: color-mix(in oklab, var(--text) 6%, transparent); }
.btn.primary, :root[data-theme="light"] .btn.primary { background: var(--primary) !important; border-color: var(--primary) !important; color: var(--on-primary) !important; }
.btn.primary:hover { opacity: 1; background: color-mix(in oklab, var(--primary) 86%, var(--frame)) !important; }
.btn.xp, .btn.xp:hover { background: #ffb547 !important; border-color: #ffb547 !important; color: #111 !important; }
.btn.small { height: 32px; padding: 0 14px; font-size: 13px; }
.btn.big { height: 48px; padding: 0 24px; font-size: 16px; }
@media (hover: hover) and (pointer: fine) { .btn { transition: transform 150ms var(--ease), background-color 150ms ease, border-color 150ms ease; } .btn:hover { transform: translateY(-1px); } }
.btn:active { transform: translateY(0) scale(.98) !important; }

/* fields */
input[type="text"], input[type="search"], input[type="email"], input[type="number"], input[type="url"], input:not([type]), select, textarea {
  font: 400 15px/1.3 var(--font); color: var(--text); background: var(--card); border: 1px solid var(--control); border-radius: 10px; }
input:focus-visible, select:focus-visible, textarea:focus-visible, .btn:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.search input { border-radius: 999px; }

/* tables: hairline rows, labels in sentence case, numbers right-aligned */
.tbl { font-size: 14px; }
.tbl th { font-size: 12.5px !important; font-weight: 500 !important; color: var(--muted) !important; padding-bottom: 12px; }
.tbl td { border-top: 1px solid var(--rule); padding-top: 12px; padding-bottom: 12px; }
.tbl tbody tr { transition: background-color 120ms ease; }
.tbl tbody tr:hover td { background: color-mix(in oklab, var(--text) 3%, transparent); }
.tbl tr.you td { background: var(--accent-soft) !important; }
.tbl tr.you td:first-child { box-shadow: inset 2px 0 0 var(--accent); }
.game-cell img { border-radius: 6px; }
.game-cell b { font-weight: 500; }

/* pills and chips: small, squared, neutral; colour only for real state */
.pill, .kind, .badge, .chip { border-radius: 6px !important; font-weight: 500 !important; letter-spacing: 0 !important; box-shadow: none !important; background-image: none !important; }
.pill { height: 22px; padding: 0 8px; font-size: 12.5px; background: color-mix(in oklab, var(--text) 7%, transparent); color: var(--text); border: 0; }
.pill.pos { background: var(--pos-bg); color: var(--pos-ink); }
.pill.neg { background: var(--neg-bg); color: var(--neg-ink); }
.pill.accent { background: var(--accent-soft); color: var(--accent-ink); }
.chipx { border-radius: 999px; }
.seg { background: color-mix(in oklab, var(--text) 5%, transparent) !important; border: 0 !important; }
.seg button[aria-pressed="true"] { background: var(--card) !important; color: var(--text) !important; box-shadow: 0 0 0 1px var(--border); }

/* meters and charts: ink, the accent once for the thing that matters */
.bar, .hp, .ready-bar { height: 8px !important; border-radius: 999px !important; background: color-mix(in oklab, var(--text) 9%, transparent) !important; overflow: hidden; }
.rbar::before { height: 8px !important; border-radius: 999px; background: color-mix(in oklab, var(--text) 9%, transparent) !important; }
.rbar i { height: 8px !important; }
.bar i, .hp i, .rbar i, .sbar i, .ready-bar i { border-radius: 999px !important; background: var(--ink-bar) !important; background-image: none !important; box-shadow: none !important; }
.bar.neg i, .boss:first-child .hp i { background: var(--negative) !important; }
.bar.pos i { background: var(--positive) !important; }
.bar.acc i, tr.you .bar i, .boss:not(:first-child) .hp i { background: var(--accent) !important; }
.bar.grey i { background: var(--base) !important; }
.ring { background: conic-gradient(var(--text) calc(var(--p) * 1%), color-mix(in oklab, var(--text) 10%, transparent) 0) !important; }
.ring span { font-family: var(--display) !important; font-weight: 400 !important; }
.chart text { font-family: var(--font); fill: var(--muted); }

/* boss list (fix first): rank as a figure, no filled tile */
.boss-rank { background: transparent !important; color: var(--text) !important; font: 400 30px/1 var(--display) !important; clip-path: none !important; border-right: 1px solid var(--rule); }
.boss:first-child .boss-rank { color: var(--negative) !important; background: transparent !important; }
.boss-top b { font: 500 17px/1.3 var(--display) !important; }
.boss-score { font-family: var(--display) !important; font-weight: 400 !important; }
.ai-fix { background: transparent !important; border-left: 2px solid var(--accent); padding: 4px 0 4px 12px !important; }

/* ================= 5. states ================= */
/* loading: a skeleton of what is coming, with the status line under it */
.working { display: grid !important; gap: 14px; padding: 4px 0; color: var(--muted); font-size: 14px; }
.working .sk { display: grid; gap: 10px; }
.working .sk i { display: block; height: 12px; border-radius: 6px; background: linear-gradient(90deg, color-mix(in oklab, var(--text) 6%, transparent) 0%, color-mix(in oklab, var(--text) 11%, transparent) 50%, color-mix(in oklab, var(--text) 6%, transparent) 100%) 0 0 / 200% 100%; animation: rp-sheen 1.4s linear infinite; }
.working .sk i:nth-child(1) { width: 92%; } .working .sk i:nth-child(2) { width: 78%; } .working .sk i:nth-child(3) { width: 54%; }
.working .wk-line { display: flex; align-items: center; gap: 10px; margin: 0; }
@keyframes rp-sheen { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .working .sk i { animation: none; } }
.spin { border-color: color-mix(in oklab, var(--text) 14%, transparent) !important; border-top-color: var(--text) !important; }
/* error: says what failed, offers the retry */
.error { border: 1px solid color-mix(in oklab, var(--negative) 45%, transparent) !important; background: var(--neg-bg) !important; color: var(--neg-ink) !important; border-radius: 12px !important; padding: 14px 16px !important; font-size: 14px !important; }
.notice { border-radius: 12px !important; font-size: 14px !important; }
/* empty: a plain line in a quiet frame */
.empty { border: 1px dashed var(--control) !important; border-radius: 12px !important; background: transparent !important; color: var(--muted); font-size: 14px !important; padding: 16px 18px !important; }
/* locked: a real panel with what unlocks, never a dashed placeholder */
.locked { border: 1px solid var(--border) !important; border-radius: var(--radius-card) !important; background: var(--card) !important; padding: 24px !important; }
.locked .lk { font: 400 20px/1.25 var(--display) !important; letter-spacing: -0.015em; }
.locked .lk svg { color: #c98a1e !important; }
.locked p, .locked ul { color: var(--text) !important; font-size: 14px !important; }
.locked.rp-lock::after { background: color-mix(in oklab, var(--frame) 55%, transparent) !important; }
.rp-ghost { filter: blur(5px); opacity: .55; }

/* ================= 6. stock components, calmed ================= */
.rp-tchip, .rp-tchip.t-studio, .rp-tchip.t-publisher, .rp-tchip.t-investor, .rp-tchip.t-free, .rp-tchip.t-own { background: color-mix(in oklab, var(--text) 7%, transparent) !important; color: var(--text) !important; clip-path: none !important; border-radius: 6px; }
.rp-tchip.t-studio { background: var(--accent-soft) !important; color: var(--accent-ink) !important; }
.card-h h2 .in-ai, .nav a em.in-ai, .in-ai { background: color-mix(in oklab, var(--text) 8%, transparent) !important; color: var(--text) !important; border-radius: 5px; }
.side .nav a em.in-ai { background: rgba(232, 232, 227, .1) !important; color: #e8e8e3 !important; }
.rp-plan, .rp-plan.rec, .rp-plan.t-publisher.rec, .rp-plan.t-investor.rec, .rs-card, .rs-live, .rp-prof-box, .rp-lk-card { background: var(--card) !important; border: 1px solid var(--border) !important; border-radius: var(--radius-card) !important; transform: none !important; }
.rp-plan.rec, .rp-plan.t-publisher.rec, .rp-plan.t-investor.rec { box-shadow: 0 0 0 1px var(--text) !important; }
.rp-plan .rp-price b, .kpi.lead .v, .rp-plan.rec .rp-price b { text-shadow: none !important; filter: none !important; background: none !important; -webkit-text-fill-color: currentColor; color: var(--text) !important; }
.rp-lk-card, .rp-prof-box { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
.rp-lk-ico { width: 40px; height: 40px; border-radius: 12px !important; background: var(--accent-soft) !important; box-shadow: none !important; clip-path: none !important; }
.rp-lk-ico svg { stroke: var(--accent-ink) !important; }
.rp-navrole button[aria-selected="true"], .rp-mx-switch button[aria-selected=true] { background: #ffb547 !important; color: #111 !important; }
.rs-card:hover, .rp-prof-opts button:hover, .rp-prof-opts button.on, .lc-gcard:hover { transform: none !important; box-shadow: 0 0 0 1px var(--text) !important; }
.ta-borrow, .lc-gcard:not(.done), .fx-ev.hit { background: var(--card) !important; background-image: none !important; }
.sy-bar i, .g-bar, .rs-bars li i::after { background: var(--ink-bar) !important; box-shadow: none !important; }
:root[data-theme="dark"] .card, :root[data-theme="dark"] .kpi { box-shadow: none !important; }

/* community teaser: a quiet linked row */
.cm-teaser { background: var(--card) !important; border: 1px solid var(--border) !important; border-radius: 14px !important; }
.cm-teaser:hover { border-color: color-mix(in oklab, var(--text) 30%, transparent) !important; }
.cm-teaser b { font: 500 16px/1.3 var(--display) !important; }
.cm-teaser .hud { color: var(--muted) !important; }

/* back / next at the foot of a screen: plain links over one rule, not two grey slabs */
.rp-next { border-top: 1px solid var(--border); padding-top: 20px; margin-top: 40px !important; }
.rp-next-a { background: transparent !important; padding: 8px 0 !important; border-radius: 0 !important; }
.rp-next-a:hover { background: transparent !important; text-decoration: none; }
.rp-next-a:hover b { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.rp-next-a b { font: 400 22px/1.2 var(--display) !important; letter-spacing: -0.02em; }
.rp-next-a.fwd b::after { color: var(--text) !important; }

/* motion: no flicker or drift */
.fx-flick { animation: none !important; }
.chart circle.ln-dot { animation: none !important; }

/* ================= 7. small screens ================= */
@media (max-width: 900px) {
  .sheet { padding: 24px 20px 56px; }
  .hero { margin: -24px -20px 24px !important; }
  .hero > .title-row { padding: 20px 20px 0; }
  .kpis, .kpis[style*="--k:7"], .kpis[style*="--k:8"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .title-row { flex-direction: column; gap: 8px; }
  .fresh { padding-top: 0; }
}
@media (max-width: 640px) {
  .sheet { padding: 20px 16px 48px !important; }
  .hero { margin: -20px -16px 20px !important; }
  .hero > .title-row { padding: 18px 16px 0; }
  .card { padding: 18px; }
  .rp-next { grid-template-columns: 1fr !important; }
  .cx-ev a { white-space: normal; }
}

/* ================= 8. screen passes ================= */
/* quotes from reviews: a rule at the left, no filled box inside the card */
.quote { background: transparent !important; border-radius: 0 !important; border-left: 2px solid color-mix(in oklab, var(--text) 16%, transparent); padding: 2px 0 2px 16px !important; font-size: 14px !important; line-height: 1.55 !important; }
.quote + .quote, .quotes > * + * { margin-top: 18px; }
.quote .qmeta { font-size: 12.5px !important; }
.tbl tr.you td { background: color-mix(in oklab, #ffb547 12%, transparent) !important; }
.kpis + *, .title-row + .kpis + * { margin-top: var(--gap); }
select, .cm-sel, select.cm-sel { background-color: var(--card) !important; border: 1px solid var(--control) !important; color: var(--text) !important; border-radius: 10px !important; }
input[type="text"], input[type="search"], input[type="email"], input[type="number"], input[type="url"], textarea { background-color: var(--card) !important; }

/* localization: the four languages as one panel with hairline columns; the glyph set as type, no tile */
.lc-gap { gap: 1px !important; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden; }
.lc-gcard, .lc-gcard:not(.done) { border: 0 !important; border-radius: 0 !important; background: var(--card) !important; padding: 18px 20px !important; transform: none !important; }
.lc-gcard:hover { transform: none !important; box-shadow: none !important; }
.lc-gglyph, .lc-gcard:not(.done) .lc-gglyph { background: transparent !important; width: auto !important; height: auto !important; border-radius: 0 !important; font: 400 30px/1 var(--display) !important; color: var(--text) !important; place-items: start !important; }

/* syndicates: the lead call-to-action as a plain row, not a dashed grey slab */
.sy-start { border: 1px solid var(--border) !important; background: var(--card) !important; border-radius: var(--radius-card) !important; padding: 20px 24px !important; }
.sy-start b { font: 400 18px/1.3 var(--display); letter-spacing: -0.01em; }
.sy-bar, .sy-amt { background: color-mix(in oklab, var(--text) 8%, transparent) !important; }
.well { background: transparent !important; padding: 0 !important; border-radius: 0 !important; border-top: 1px solid var(--rule); }
.gp-rew blockquote { background: transparent !important; border-left: 2px solid color-mix(in oklab, var(--text) 16%, transparent) !important; padding: 2px 0 2px 16px !important; }
.cx-th { background: transparent !important; font-size: 12.5px !important; font-weight: 500 !important; color: var(--muted) !important; }
.kpi .v.sm, .kpi.lead .v.sm { font-size: clamp(20px, 1rem + .6vw, 26px) !important; }

/* app home (/start): role switch as a quiet segmented control, upright headline, plain trial line */
.rp-roles { display: inline-flex !important; gap: 2px !important; padding: 3px !important; border-radius: 999px !important; background: color-mix(in oklab, var(--text) 6%, transparent) !important; border: 0 !important; }
.rp-roles button { height: 30px !important; padding: 0 14px !important; border: 0 !important; border-radius: 999px !important; background: transparent !important; color: var(--muted) !important; font: 500 13px/1 var(--font) !important; box-shadow: none !important; }
.rp-roles button i { display: none !important; }
.rp-roles button[aria-pressed="true"] { background: var(--card) !important; color: var(--text) !important; box-shadow: 0 0 0 1px var(--border) !important; }
h1 em, .title-row h1 em { font-style: normal !important; color: var(--muted); }
.rp-trial { display: inline-flex !important; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--text) !important; font-size: 14px !important; text-decoration: none; }
.rp-trial-tag { padding: 3px 8px; border-radius: 6px; background: #ffb547; color: #111; font: 500 12.5px/1.2 var(--font); }
.rp-trial-t b { font-weight: 500; }
.rp-trial-go { display: inline-flex; align-items: center; gap: 4px; color: var(--accent); font-weight: 500; }
.rp-trial-go svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* pricing: no gradient pills, no icon tiles, featured plan marked by a hairline in ink */
.rp-mx-switch button[aria-selected=true] { background: #ffb547 !important; background-image: none !important; color: #111 !important; }
.rp-mx-ico { display: none !important; }
.rp-mx .on { background: color-mix(in oklab, #ffb547 8%, transparent) !important; }
.rp-mx thead .on { box-shadow: inset 0 2px 0 var(--text) !important; }
.rp-mx-g th { color: var(--muted) !important; font: 500 12.5px/1 var(--font) !important; letter-spacing: 0 !important; background: transparent !important; }
.st-bar.mini i { background: var(--ink-bar) !important; border-radius: 999px; }
.st-bar.mini b { font-family: var(--font) !important; font-weight: 500 !important; }
@media (max-width: 700px) {
  .tbl.stack tr.you { background: color-mix(in oklab, #ffb547 12%, transparent); border-radius: 12px; }
  .tbl.stack tr.you td { background: transparent !important; box-shadow: none !important; }
}

/* ================= 9. responsive: tablet (641-1023) and phone (<=640) ================= */
/* selected tabs and toggles anywhere: flat, never a gradient */
[role="tab"][aria-selected="true"], [aria-pressed="true"] { background-image: none !important; }
.gd-tabs button[aria-selected="true"] { background: #ffb547 !important; color: #111 !important; box-shadow: none !important; }
input:not([type]) { background-color: var(--card) !important; }
.sy-amt input { background: none !important; }
.rp-roles { width: fit-content !important; max-width: 100%; align-self: flex-start; }

/* KPI strip: dividers drawn by each cell, so a short last row never leaves a grey hole */
.kpis { gap: 0 !important; background: var(--card) !important; }
.kpi { box-shadow: 1px 0 0 var(--border), 0 1px 0 var(--border) !important; }

/* the rival reason under a game wraps to two lines instead of holding the column 520px wide */
.rv-why { max-width: 46ch !important; }
.rv-why summary { white-space: normal !important; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rv-why[open] summary { display: block; }

/* tables that still scroll sideways show a fade at their right edge */
.rp-xscroll { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }

.rp-ftoggle { display: none; }

@media (max-width: 1023px) {
  .sheet { padding: 24px 24px 64px !important; }
  .hero { margin: -24px -24px 24px !important; }
  .hero > .title-row { padding: 22px 24px 0 !important; }
  .hero-art { height: clamp(140px, 26vw, 200px) !important; }
  .title-row { flex-direction: column; gap: 10px; margin-bottom: 22px; }
  .fresh { padding-top: 0; }
  .kpis, .kpis[style*="--k:7"], .kpis[style*="--k:8"] { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)) !important; }
  .g-21, .g-2, .g-3, .g-12 { grid-template-columns: minmax(0, 1fr) !important; }
  .card-h { flex-wrap: wrap; row-gap: 6px; }
  /* filter panels fold behind a button so the results come first */
  .mk-pubgrid { grid-template-columns: minmax(0, 1fr) !important; }
  .mk-filters { position: static !important; }
  .rp-ftoggle { display: inline-flex; margin-left: auto; }
  .mk-filters:not(.rp-fopen) > :not(.card-h) { display: none !important; }
  .mk-filters.rp-fopen { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
  .mk-filters.rp-fopen > .card-h, .mk-filters.rp-fopen > :not(.field) { grid-column: 1 / -1; }
  /* game tables stack into rows of label and value (the phone layout) up to tablet width */
  .tbl.stack thead { display: none; }
  .tbl.stack tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 14px 0; border-top: 1px solid var(--rule); }
  .tbl.stack td { border: 0 !important; padding: 0 !important; background: none !important; box-shadow: none !important; text-align: left; }
  .tbl.stack td.hide-s { display: none; }
  .tbl.stack td[data-l]::before { content: attr(data-l) " "; color: var(--muted); font-size: 12.5px; }
  .tbl.stack td.full, .tbl.stack td:first-child { grid-column: 1 / -1; }
  .tbl.stack tr.you { background: color-mix(in oklab, #ffb547 12%, transparent); border-radius: 12px; padding: 14px 12px; }
  .rv-why { margin-left: 0 !important; max-width: none !important; }
  /* the top bar keeps search, report and account; the rest folds into the menu */
  .top { gap: 8px; }
  .top .search { flex: 1 1 auto; min-width: 0; }
  /* pitch deck slides scale to the column */
  .deck, .slides { grid-template-columns: minmax(0, 1fr) !important; }
  .rp-next { grid-template-columns: 1fr 1fr; }
  .lc-gap { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .fx-cal, .fx-grid { grid-template-columns: minmax(0, 1fr) !important; }
}

@media (max-width: 640px) {
  html, body { font-size: 15px; }
  .sheet { padding: 18px 16px 56px !important; }
  .hero { margin: -18px -16px 20px !important; }
  .hero > .title-row { padding: 18px 16px 0 !important; }
  .hero-art { height: 132px !important; }
  h1, .title-row h1 { font-size: 32px !important; }
  .title-row .sub, .title-row p.sub { font-size: 16px; }
  .card { padding: 18px !important; border-radius: 14px !important; }
  .card-h h2, section.card > h2 { font-size: 18px !important; }
  .kpis, .kpis[style*="--k:7"], .kpis[style*="--k:8"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .kpi { padding: 14px 14px 16px !important; }
  .kpi .v { font-size: 24px !important; }
  .mk-filters.rp-fopen { grid-template-columns: minmax(0, 1fr); }
  .lc-gap { grid-template-columns: minmax(0, 1fr) !important; }
  .rp-next { grid-template-columns: 1fr !important; }
  .rp-next-a.fwd { text-align: left !important; align-items: flex-start !important; }
  .rp-next-a b { font-size: 20px !important; }
  /* tap targets: 40px controls, 36px chips */
  .btn { min-height: 40px; }
  .btn.small { min-height: 36px; }
  .seg button, .rp-roles button, .chipadd, .chipx { min-height: 34px; }
  select, input[type="text"], input[type="search"], input[type="email"], input[type="number"], input:not([type]) { font-size: 16px !important; min-height: 42px; }
  .cm-teaser { grid-template-columns: minmax(0, 1fr) !important; }
  .sy-start { flex-direction: column; align-items: flex-start !important; }
  .foot { gap: 10px 16px; }
}
@media (max-width: 1023px) {
  .tbl.stack tr { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .tbl.stack td { min-width: 0; overflow-wrap: anywhere; text-align: left !important; }
  .tbl.stack td.r { text-align: left !important; white-space: normal !important; }
}
/* small laptops and tablets held sideways (1024-1279): filters fold above the results too */
@media (min-width: 1024px) and (max-width: 1279px) {
  .mk-pubgrid { grid-template-columns: minmax(0, 1fr) !important; }
  .mk-filters { position: static !important; }
  .rp-ftoggle { display: inline-flex; margin-left: auto; }
  .mk-filters:not(.rp-fopen) > :not(.card-h) { display: none !important; }
  .mk-filters.rp-fopen { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 16px; }
  .mk-filters.rp-fopen > .card-h, .mk-filters.rp-fopen > :not(.field) { grid-column: 1 / -1; }
}
@media (max-width: 640px) { .rp-next-a.back { order: -1; } }
/* pricing matrix: tighter columns below 1280px so all four plans fit beside the sticky feature column */
@media (max-width: 1279px) and (min-width: 701px) {
  .rp-mx { min-width: 680px !important; font-size: 13.5px !important; }
  .rp-mx .rp-mx-f, .rp-mx td:first-child { min-width: 180px !important; }
  .rp-mx td, .rp-mx th { padding: 10px 10px !important; }
  .rp-mx thead th { padding-top: 34px !important; }
  .rp-mx-p b { font-size: 24px !important; }
}
