/* ============================================================
   YKYMF Video Game Greed Index (/greedindex/) — section styles on top of /assets/house.css
   Day and Night follow the house switch (<html data-theme>, or the device). Plain controls are square like the rest
   of the site; the rating language keeps its shapes: price-tag, hooked-pill, square-label and hexagon badges,
   health pills, level pills and the addictive-design meter.
   Health colours: fair / watch / caution / harmful (darker by day so they read on white).
   ============================================================ */

.pop {
  --h-fair: #00843d;
  --h-watch: #9a6a00;
  --h-caution: #c2410c;
  --h-harmful: #c8102e;
  --h-none: #74746e;
  --h-neutral: #4f5677;
  --lv-mild: #0e7490;
  --lv-moderate: #5b45d6;
  --lv-strong: #b3127f;
}
/* Night, and anything drawn over a picture (.pop-on-pic): the bright set. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="day"]) .pop {
    --h-fair: #5ee38f; --h-watch: #ffc23a; --h-caution: #ff8a3d; --h-harmful: #ff5a7a; --h-none: #7e8296;
    --h-neutral: #aab1d6; --lv-mild: #6fd3e3; --lv-moderate: #a99bff; --lv-strong: #f07ad8;
  }
}
:root[data-theme="night"] .pop, .pop .pop-on-pic {
  --h-fair: #5ee38f; --h-watch: #ffc23a; --h-caution: #ff8a3d; --h-harmful: #ff5a7a; --h-none: #7e8296;
  --h-neutral: #aab1d6; --lv-mild: #6fd3e3; --lv-moderate: #a99bff; --lv-strong: #f07ad8;
}
.h-fair    { --hc: var(--h-fair); }
.h-watch   { --hc: var(--h-watch); }
.h-caution { --hc: var(--h-caution); }
.h-harmful { --hc: var(--h-harmful); }
.h-none    { --hc: var(--h-none); }

.pop-skip { position: absolute; left: -999px; top: 0; z-index: 200; background: var(--accent); color: var(--accent-ink); padding: .5rem 1rem; border-radius: 0; }
.pop-skip:focus { left: 0; }
.pop-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pop a:focus-visible, .pop button:focus-visible, .pop input:focus-visible, .pop select:focus-visible, .pop summary:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 2px;
}

.pop-narrow { max-width: 760px; }
.pop-h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); margin-bottom: .6rem; }
.pop-h2 { font-size: clamp(1.45rem, 3vw, 2rem); margin: 0 0 1rem; }
.pop-section { padding: clamp(2rem, 5vw, 3.4rem) 0; }
.pop-section + .pop-section { border-top: 1px solid var(--line); }
.pop-prose p, .pop-prose li { color: var(--ink-2); }
.pop-prose a, .pop-link { color: var(--accent); border-bottom: 1px solid var(--accent-soft); }
.pop-prose a:hover, .pop-link:hover { border-bottom-color: var(--accent); }
.pop-kicker { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 .5rem; }
.pop-note { font-size: .88rem; color: var(--ink-3); }
.pop-breadcrumb { font-family: var(--font-mono); font-size: .76rem; color: var(--ink-3); margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .5ch; }
.pop-breadcrumb a:hover { color: var(--accent); }

/* ---------- Badges ---------- */
.pop-badge {
  --bh: 30px;
  display: inline-flex; align-items: center; gap: .45rem;
  height: var(--bh); padding: 0 .8rem 0 .55rem;
  font-family: var(--font-mono); font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink); white-space: nowrap; line-height: 1;
  position: relative; transition: transform .15s ease, box-shadow .15s ease;
}
a.pop-badge:hover { transform: translateY(-1px); }
.pop-badge__icon { display: inline-grid; place-items: center; color: var(--hc); flex: none; }
.pop-badge .pop-ico { width: 16px; height: 16px; }
.pop-badge__flag { font-size: .6rem; letter-spacing: .1em; color: var(--ink-3); border-left: 1px solid var(--line-2); padding-left: .45rem; }

/* Model = price tag: pointed left end with a punched hole. */
.pop-badge--model {
  padding-left: 1.35rem;
  background:
    radial-gradient(circle at 11px 50%, var(--bg) 0 3px, var(--hc) 3px 4.2px, transparent 4.4px),
    linear-gradient(90deg, color-mix(in srgb, var(--hc) 22%, transparent), color-mix(in srgb, var(--hc) 12%, transparent));
  clip-path: polygon(0 50%, 10px 0, 100% 0, 100% 100%, 10px 100%);
  border-radius: 0 6px 6px 0;
  box-shadow: inset -2px 0 0 color-mix(in srgb, var(--hc) 70%, transparent), inset 0 2px 0 color-mix(in srgb, var(--hc) 30%, transparent), inset 0 -2px 0 color-mix(in srgb, var(--hc) 30%, transparent);
}
/* Technique = outline pill with a small hook hanging from the right end. */
.pop-badge--technique {
  border: 1.5px solid var(--hc); border-radius: 999px; background: color-mix(in srgb, var(--bg) 60%, transparent);
  padding-right: 1.1rem;
}
.pop-badge--technique::after {
  content: ""; position: absolute; right: 7px; top: -1.5px; width: 6px; height: 9px;
  border: 1.5px solid var(--hc); border-top: 0; border-left-color: transparent; border-radius: 0 0 6px 6px;
  transform: rotate(-12deg);
}
.pop-badge.is-minor { opacity: .82; }
.pop-badge.is-past { filter: grayscale(.85); opacity: .6; }
.pop-badge--sm { --bh: 24px; font-size: .64rem; gap: .35rem; padding-right: .6rem; }
.pop-badge--sm.pop-badge--model { padding-left: 1.15rem; background-position: 0 0; }
.pop-badge--sm .pop-ico { width: 13px; height: 13px; }
.pop-badge--sm.pop-badge--technique { padding-right: .95rem; }
.pop-badge--lg { --bh: 48px; font-size: .95rem; gap: .65rem; padding-right: 1.3rem; }
.pop-badge--lg .pop-ico { width: 26px; height: 26px; }
.pop-badge--lg.pop-badge--model {
  padding-left: 2rem;
  background:
    radial-gradient(circle at 16px 50%, var(--bg) 0 5px, var(--hc) 5px 6.6px, transparent 6.8px),
    linear-gradient(90deg, color-mix(in srgb, var(--hc) 24%, transparent), color-mix(in srgb, var(--hc) 12%, transparent));
  clip-path: polygon(0 50%, 15px 0, 100% 0, 100% 100%, 15px 100%);
}
.pop-badge--lg.pop-badge--technique { padding-right: 1.7rem; }
.pop-badge--lg.pop-badge--technique::after { right: 11px; width: 9px; height: 13px; }
.pop-badges { display: flex; flex-wrap: wrap; gap: .5rem .55rem; align-items: center; }

/* Mini icon-only badges (cards) */
.pop-mini {
  display: inline-grid; place-items: center; width: 26px; height: 22px; color: var(--hc);
  border: 1px solid color-mix(in srgb, var(--hc) 55%, transparent);
}
.pop-mini .pop-ico { width: 14px; height: 14px; }
.pop-mini--model { border-radius: 2px 5px 5px 2px; background: color-mix(in srgb, var(--hc) 14%, transparent); clip-path: polygon(0 50%, 5px 0, 100% 0, 100% 100%, 5px 100%); padding-left: 3px; width: 28px; }
.pop-mini--technique { border-radius: 999px; }
.pop-mini--more { width: auto; padding: 0 .4rem; color: var(--ink-3); border-color: var(--line-2); font-family: var(--font-mono); font-size: .68rem; border-radius: 999px; }

/* ---------- Health pill, hook meter, rating pill ---------- */
.pop-health {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--font-mono); font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--hc); padding: .28rem .65rem; border-radius: 999px;
  background: color-mix(in srgb, var(--hc) 12%, transparent); border: 1px solid color-mix(in srgb, var(--hc) 40%, transparent);
  white-space: nowrap;
}
.pop-health i { width: 8px; height: 8px; border-radius: 50%; background: var(--hc); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="day"]) .pop-health:not(.h-none) i { box-shadow: 0 0 10px var(--hc); } }
:root[data-theme="night"] .pop-health:not(.h-none) i { box-shadow: 0 0 10px var(--hc); }
.pop-health small { font-size: .68rem; color: var(--ink-2); letter-spacing: .02em; text-transform: none; font-weight: 500; }
.pop-health.h-none { text-transform: none; letter-spacing: 0; font-weight: 500; }
.pop-health.h-none i { box-shadow: none; }

.pop-hook { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-mono); font-size: .72rem; color: var(--ink-2); }
.pop-hook.is-none { color: var(--ink-3); }
.pop-hook__bar { display: inline-flex; gap: 3px; }
.pop-hook__bar i { width: 12px; height: 8px; border-radius: 2px; background: color-mix(in srgb, var(--ink) 8%, transparent); }
.pop-hook.s1 .on, .pop-hook.s2 .on { background: var(--h-watch); }
.pop-hook.s3 .on { background: var(--h-caution); }
.pop-hook.s4 .on, .pop-hook.s5 .on { background: var(--h-harmful); }

.pop-rating {
  display: inline-flex; align-items: center; gap: .35rem; height: 22px; padding: 0 .5rem 0 0;
  font-family: var(--font-mono); font-size: .7rem; font-weight: 600; color: var(--ink);
  border: 1px solid var(--line-2); border-radius: 5px; overflow: hidden; white-space: nowrap;
}
.pop-rating b { background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--ink-3); font-weight: 600; padding: 0 .4rem; height: 100%; display: inline-flex; align-items: center; font-size: .6rem; letter-spacing: .08em; }
.pop-rating.acb-g     { border-color: #3fbf6a; } .pop-rating.acb-g b { background: #3fbf6a; color: #04140a; }
.pop-rating.acb-pg    { border-color: #f5c400; } .pop-rating.acb-pg b { background: #f5c400; color: #1d1600; }
.pop-rating.acb-m     { border-color: #3aa7e8; } .pop-rating.acb-m b { background: #3aa7e8; color: #03151f; }
.pop-rating.acb-ma15  { border-color: #e8423a; } .pop-rating.acb-ma15 b { background: #e8423a; color: #fff; }
.pop-rating.acb-r18   { border-color: var(--ink); }    .pop-rating.acb-r18 b { background: #000; color: #fff; }

/* ---------- Cards ---------- */
.pop-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); }
.pop-card {
  background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius-sm); position: relative; overflow: hidden;
  transition: border-color .18s, transform .18s;
}
.pop-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--hc); opacity: .85; }
.pop-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.pop-card__link { display: grid; grid-template-columns: 92px 1fr; gap: .9rem; padding: .85rem .9rem .85rem 1rem; height: 100%; }
.pop-card__title { font-size: 1.08rem; margin: 0 0 .15rem; color: var(--ink); line-height: 1.2; }
.pop-card__meta { font-family: var(--font-mono); font-size: .7rem; color: var(--ink-3); margin: 0 0 .55rem; }
.pop-card__row { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .45rem; }
.pop-card__row--hook { justify-content: flex-start; }
.pop-card__k { font-family: var(--font-mono); font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.pop-card__price { font-family: var(--font-mono); font-size: .8rem; color: var(--ink); font-weight: 600; }
.pop-card__minis { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; }
.pop-card .pop-health { font-size: .66rem; padding: .2rem .5rem; }

.pop-cover {
  position: relative; aspect-ratio: 3 / 4; border-radius: 0; overflow: hidden;
  background: var(--panel-2); border: 1px solid var(--line);
}
.pop-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pop-cover.is-logo { background: linear-gradient(145deg, #75798f, #5d6176); }
.pop-cover.is-logo img { object-fit: contain; padding: 12%; }
.pop-cover.is-logo .pop-cover__ph { display: none; }
.pop-cover__ph {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; color: color-mix(in srgb, var(--ink) 18%, transparent); letter-spacing: .04em;
}

/* ---------- Home ---------- */
.pop-hero { padding: clamp(2.6rem, 7vw, 5rem) 0 clamp(1.6rem, 4vw, 2.6rem); }
.pop-hero h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); max-width: 18ch; }
.pop-search { display: flex; gap: .5rem; max-width: 640px; margin: 1.4rem 0 1rem; }
.pop-search input {
  flex: 1; min-width: 0; height: 52px; padding: 0 1.1rem; font: inherit; font-size: 1.05rem; color: var(--ink);
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 0;
}
.pop-search input::placeholder { color: var(--ink-3); }
.pop-search .btn { height: 52px; border-radius: 0; }
.pop-quick { display: flex; flex-wrap: wrap; gap: .45rem; }
.pop-quick a {
  font-size: .85rem; color: var(--ink-2); padding: .4rem .8rem; border: 1px solid var(--line-2); border-radius: 0;
  background: color-mix(in srgb, var(--ink) 2%, transparent);
}
.pop-quick a:hover { color: var(--ink); border-color: var(--accent); }

.pop-scale { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.pop-scale__item { border: 1px solid var(--line); border-top: 3px solid var(--hc); border-radius: var(--radius-sm); padding: 1rem 1.1rem; background: color-mix(in srgb, var(--ink) 1.5%, transparent); }
.pop-scale__item h3 { font-size: 1.05rem; margin: .55rem 0 .35rem; color: var(--ink); }
.pop-scale__item p { font-size: .9rem; margin: 0; }

.pop-legend { display: grid; gap: 1rem 1.6rem; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); }
.pop-legend__item { display: flex; gap: .9rem; align-items: flex-start; }
.pop-legend__item p { font-size: .92rem; margin: .35rem 0 0; }

/* ---------- Browse ---------- */
.pop-browse { display: grid; gap: 1.6rem; grid-template-columns: 270px minmax(0, 1fr); align-items: start; padding: 1.6rem 0 3rem; }
.pop-browse > section { min-width: 0; }
.pop-filters { position: sticky; top: 92px; max-height: calc(100vh - 108px); overflow: auto; padding-right: .3rem; }
.pop-filters details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: color-mix(in srgb, var(--ink) 1.5%, transparent); }
.pop-filters summary { cursor: pointer; padding: .8rem 1rem; font-family: var(--font-mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); list-style: none; display: flex; justify-content: space-between; }
.pop-filters summary::-webkit-details-marker { display: none; }
.pop-filters summary::after { content: "+"; color: var(--accent); }
.pop-filters details[open] summary::after { content: "–"; }
.pop-filters form { padding: 0 1rem 1rem; }
.pop-field { margin-bottom: 1rem; }
.pop-field > label:not(.pop-check), .pop-field legend { display: block; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .4rem; padding: 0; }
.pop-field fieldset, fieldset.pop-field { border: 0; padding: 0; margin: 0 0 1rem; min-width: 0; }
.pop-field input[type=search], .pop-field select {
  width: 100%; height: 40px; padding: 0 .7rem; font: inherit; font-size: .92rem; color: var(--ink);
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 0;
}
.pop-check { display: flex; align-items: center; gap: .5rem; font-size: .9rem; color: var(--ink-2); padding: .18rem 0; cursor: pointer; }
.pop-check input { accent-color: var(--accent); width: 16px; height: 16px; flex: none; }
.pop-check .pop-health { font-size: .64rem; padding: .12rem .45rem; }
.pop-filter-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.pop-filter-actions .btn { padding: .55rem 1rem; font-size: .88rem; }
.pop-results-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .6rem 1rem; margin-bottom: 1rem; }
.pop-results-head h1 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin: 0; }
.pop-active { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.pop-active a { font-size: .78rem; padding: .25rem .6rem; border-radius: 0; border: 1px solid var(--line-2); color: var(--ink-2); }
.pop-active a::after { content: " ✕"; color: var(--ink-3); }
.pop-active a:hover { border-color: var(--bad); color: var(--ink); }
.pop-pager { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.6rem; justify-content: center; }
.pop-pager a, .pop-pager span { min-width: 38px; height: 38px; display: inline-grid; place-items: center; padding: 0 .6rem; border-radius: 0; border: 1px solid var(--line); font-family: var(--font-mono); font-size: .82rem; color: var(--ink-2); }
.pop-pager a:hover { border-color: var(--accent); color: var(--ink); }
.pop-pager .is-current { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 700; }
.pop-empty { padding: 2.5rem 1.5rem; text-align: center; border: 1px dashed var(--line-2); border-radius: var(--radius); color: var(--ink-2); }

/* ---------- Browse: compact table view ---------- */
.pop-results-meta { display: inline-flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.pop-viewtoggle { display: inline-flex; border: 1px solid var(--line-2); border-radius: 0; overflow: hidden; }
.pop-viewtoggle a { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; padding: .35rem .75rem; color: var(--ink-2); }
.pop-viewtoggle a + a { border-left: 1px solid var(--line-2); }
.pop-viewtoggle a:hover { color: var(--ink); }
.pop-viewtoggle a.is-current { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.pop-sortbar { display: none; }
.pop-list-wrap { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow-x: auto; -webkit-overflow-scrolling: touch; background: color-mix(in srgb, var(--ink) 1.2%, transparent); }
.pop-list { width: 100%; border-collapse: collapse; font-size: .86rem; }
.pop-list th { text-align: left; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; padding: .55rem .4rem; border-bottom: 1px solid var(--line-2); white-space: nowrap; background: color-mix(in srgb, var(--ink) 2%, transparent); }
.pop-list th a { color: inherit; display: inline-flex; align-items: center; gap: .3rem; }
.pop-list th a:hover, .pop-list th[aria-sort] a { color: var(--ink); }
.pop-sort-arrow { color: var(--accent); font-size: .7rem; }
.pop-list th.num, .pop-list td.num { text-align: right; }
.pop-list td { padding: .42rem .4rem; border-bottom: 1px solid var(--line); color: var(--ink-2); vertical-align: middle; white-space: nowrap; }
.pop-list tbody tr:last-child td { border-bottom: 0; }
.pop-list tbody tr { box-shadow: inset 3px 0 0 color-mix(in srgb, var(--hc) 80%, transparent); }
.pop-list tbody tr:hover td { background: color-mix(in srgb, var(--ink) 3%, transparent); }
.pop-list__title { white-space: normal !important; min-width: 11rem; padding-left: .7rem !important; }
.pop-list__title a { color: var(--ink); font-weight: 600; }
.pop-list__title a:hover { color: var(--accent); }
.pop-list__sub { display: none; font-family: var(--font-mono); font-size: .68rem; color: var(--ink-3); margin-top: .1rem; }
.pop-list__year, .pop-list__price { font-family: var(--font-mono); font-size: .8rem; }
.pop-list__price { color: var(--ink); font-weight: 600; }
.pop-list__plat { font-family: var(--font-mono); font-size: .7rem; color: var(--ink-3) !important; }
.pop-list__na { color: var(--ink-3); }
.pop-list .pop-health { font-size: .62rem; padding: .16rem .45rem; gap: .35rem; }
.pop-list .pop-health i { width: 6px; height: 6px; }
.pop-list .pop-hook__bar { gap: 2px; }
.pop-list .pop-hook__bar i { width: 8px; height: 7px; }
.pop-acb { display: inline-grid; place-items: center; min-width: 2.1rem; height: 19px; padding: 0 .35rem; border-radius: 4px; font-family: var(--font-mono); font-size: .64rem; font-weight: 700; border: 1px solid var(--line-2); color: var(--ink); }
.pop-acb.acb-g { background: #3fbf6a; border-color: #3fbf6a; color: #04140a; }
.pop-acb.acb-pg { background: #f5c400; border-color: #f5c400; color: #1d1600; }
.pop-acb.acb-m { background: #3aa7e8; border-color: #3aa7e8; color: #03151f; }
.pop-acb.acb-ma15 { background: #e8423a; border-color: #e8423a; color: #fff; }
.pop-acb.acb-r18 { background: #000; border-color: var(--ink); color: #fff; }
.pop-list__badges > span { display: inline-flex; gap: .25rem; align-items: center; vertical-align: middle; }
.pop-list .pop-mini { width: 22px; height: 19px; }
.pop-list .pop-mini--model { width: 24px; }
.pop-list .pop-mini .pop-ico { width: 12px; height: 12px; }
.pop-list .pop-mini--more { width: auto; font-size: .62rem; }
@media (max-width: 1180px) {
  .pop-list__year, .pop-list__plat { display: none; }
  .pop-list__sub { display: block; }
}
@media (max-width: 640px) {
  .pop-sortbar { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; margin-bottom: .7rem; font-family: var(--font-mono); font-size: .7rem; }
  .pop-sortbar span { color: var(--ink-3); letter-spacing: .12em; text-transform: uppercase; margin-right: .2rem; }
  .pop-sortbar a { padding: .25rem .55rem; border: 1px solid var(--line-2); border-radius: 0; color: var(--ink-2); }
  .pop-sortbar a.is-current { border-color: var(--accent); color: var(--ink); }
  .pop-list-wrap { border-left: 0; border-right: 0; border-radius: 0; background: none; overflow: visible; }
  .pop-list thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .pop-list, .pop-list tbody { display: block; }
  .pop-list tbody tr { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .45rem; padding: .55rem .2rem .55rem .7rem; border-bottom: 1px solid var(--line); }
  .pop-list td { padding: 0; border: 0; }
  .pop-list tbody tr:hover td { background: none; }
  .pop-list__title { flex: 1 1 calc(100% - 5.5rem); min-width: 0; padding-left: 0 !important; }
  .pop-list__price { flex: 0 0 auto; }
  .pop-list__acb .pop-list__na, .pop-list__hook .pop-list__na { display: none; }
}

/* ---------- Game page ---------- */
.pop-game-hero { display: grid; gap: clamp(1.2rem, 3vw, 2.4rem); grid-template-columns: 220px 1fr; padding: clamp(1.8rem, 4vw, 3rem) 0 1.4rem; align-items: start; }
.pop-game-hero .pop-cover { box-shadow: var(--shadow-sm); }
.pop-game-hero .pop-cover__ph { font-size: 3rem; }
.pop-game-hero h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); margin: 0 0 .35rem; }
.pop-game-sub { font-family: var(--font-mono); font-size: .8rem; color: var(--ink-3); margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .3rem 1rem; }
.pop-game-sub b { color: var(--ink-2); font-weight: 500; }
.pop-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.pop-chips li, .pop-chip { font-size: .8rem; padding: .25rem .65rem; border: 1px solid var(--line-2); border-radius: 0; color: var(--ink-2); background: color-mix(in srgb, var(--ink) 2%, transparent); }
.pop-synopsis { font-size: 1.05rem; color: var(--ink-2); max-width: 66ch; }

.pop-stats { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin: 1.2rem 0 0; }
.pop-stat { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .85rem 1rem; background: color-mix(in srgb, var(--ink) 2%, transparent); min-width: 0; }
.pop-stat__k { font-family: var(--font-mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 .45rem; display: block; }
.pop-stat__v { font-size: 1.35rem; font-weight: 700; color: var(--ink); line-height: 1.15; display: block; }
.pop-stat__v small { display: block; font-size: .78rem; color: var(--ink-3); font-weight: 400; margin-top: .25rem; line-height: 1.35; }
.pop-stat--verdict { border-color: color-mix(in srgb, var(--hc) 45%, transparent); background: color-mix(in srgb, var(--hc) 7%, transparent); }
.pop-stat--verdict .pop-stat__v { color: var(--hc); }
.pop-stat .pop-hook__bar i { width: 18px; height: 10px; }
.pop-stat .pop-hook { font-size: .95rem; color: var(--ink); font-family: var(--font-body); font-weight: 700; }

.pop-toc { display: flex; flex-wrap: wrap; gap: .3rem; padding: .7rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 1.2rem 0 0; position: sticky; top: 76px; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); }
.pop-toc a { font-size: .82rem; color: var(--ink-2); padding: .3rem .7rem; border-radius: 0; }
.pop-toc a:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 5%, transparent); }

.pop-two { display: grid; gap: 1.4rem; grid-template-columns: 1.15fr .85fr; align-items: start; }
.pop-panel { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1rem, 2.4vw, 1.5rem); background: var(--panel); }
.pop-panel h3 { font-size: 1.05rem; color: var(--ink); margin: 0 0 .7rem; }
.pop-panel + .pop-panel { margin-top: 1rem; }
.pop-panel .pop-prose p { font-size: .92rem; }

.pop-taglist { list-style: none; padding: 0; margin: 0; display: grid; gap: .65rem; }
.pop-taglist li { display: grid; grid-template-columns: minmax(0, auto) 1fr; gap: .4rem 1rem; align-items: start; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.pop-taglist li:last-child { border-bottom: 0; }
.pop-taglist p { margin: 0; font-size: .92rem; }
.pop-taglist .pop-tag-side { min-width: 0; }
.pop-taglist .pop-tag-side .muted { font-size: .78rem; display: block; margin-top: .2rem; font-family: var(--font-mono); }

.pop-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.pop-table th { text-align: left; font-family: var(--font-mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; padding: .45rem .5rem; border-bottom: 1px solid var(--line-2); }
.pop-table td { padding: .55rem .5rem; border-bottom: 1px solid var(--line); color: var(--ink-2); vertical-align: top; }
.pop-table td.nowrap { white-space: nowrap; }
.pop-table td.num { font-family: var(--font-mono); color: var(--ink); white-space: nowrap; text-align: right; }
.pop-table th.num { text-align: right; }
.pop-table a { color: var(--accent); }
.pop-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.pop-agg { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1rem; }
.pop-agg a, .pop-agg div { display: flex; align-items: center; gap: .7rem; border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: .6rem .9rem; }
.pop-agg b { font-size: 1.7rem; color: var(--ink); font-family: var(--font-display); line-height: 1; }
.pop-agg span { font-size: .78rem; color: var(--ink-3); line-height: 1.3; }
.pop-reviews { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.pop-review { display: grid; grid-template-columns: 64px 1fr; gap: .9rem; padding: .8rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: color-mix(in srgb, var(--ink) 1.5%, transparent); }
.pop-review__score { display: grid; place-items: center; height: 56px; border-radius: 0; font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: var(--ink); background: color-mix(in srgb, var(--ink) 5%, transparent); line-height: 1; text-align: center; }
.pop-review__score small { display: block; font-size: .6rem; color: var(--ink-3); font-weight: 500; font-family: var(--font-mono); margin-top: .2rem; }
.pop-review__score.is-text { font-size: .72rem; font-family: var(--font-mono); padding: 0 .3rem; }
.pop-review h4 { margin: 0; font-size: 1rem; color: var(--ink); }
.pop-review p { margin: .25rem 0 0; font-size: .88rem; }
.pop-review .pop-review__meta { font-family: var(--font-mono); font-size: .7rem; color: var(--ink-3); margin-top: .1rem; }

.pop-ratings { display: grid; gap: .6rem; }
.pop-ratings > div { display: grid; grid-template-columns: auto 1fr; gap: .25rem .8rem; align-items: start; }
.pop-ratings p { margin: 0; font-size: .85rem; }

.pop-facts { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.pop-facts li { display: grid; grid-template-columns: 22px 1fr; gap: .5rem; font-size: .93rem; color: var(--ink-2); }
.pop-facts li::before { content: ""; width: 10px; height: 10px; margin-top: .45rem; border-radius: 3px; }
.pop-facts .yes::before { background: var(--h-caution); }
.pop-facts .no::before { background: var(--h-fair); }
.pop-facts .unk::before { background: var(--h-none); }

.pop-ctl { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.pop-ctl__item { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .8rem .95rem; }
.pop-ctl__item h4 { margin: 0 0 .3rem; font-size: .95rem; color: var(--ink); }
.pop-ctl__item p { margin: 0 0 .4rem; font-size: .84rem; }
.pop-can { display: flex; flex-wrap: wrap; gap: .3rem; }
.pop-can span { font-family: var(--font-mono); font-size: .64rem; padding: .15rem .4rem; border-radius: 4px; border: 1px solid var(--line-2); color: var(--ink-3); }
.pop-can span.y { color: var(--h-fair); border-color: color-mix(in srgb, var(--h-fair) 45%, transparent); }
.pop-can span.n { text-decoration: line-through; }

/* ---------- Method page ---------- */
.pop-method-hero { padding: clamp(2rem, 5vw, 3.6rem) 0 1.4rem; }
.pop-method-hero h1 { font-size: clamp(2.2rem, 5.4vw, 4rem); margin: 1rem 0 .4rem; }
.pop-method-hero .lead { margin-bottom: 1rem; }
.pop-verdict-box { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; padding: .9rem 1.1rem; border-radius: var(--radius-sm); border: 1px solid color-mix(in srgb, var(--hc) 40%, transparent); background: color-mix(in srgb, var(--hc) 7%, transparent); max-width: 760px; }
.pop-verdict-box p { margin: 0; color: var(--ink); font-size: .95rem; flex: 1 1 260px; }
.pop-flags { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.pop-flags li { padding-left: 1.6rem; position: relative; color: var(--ink-2); }
.pop-flags li::before { content: "!"; position: absolute; left: 0; top: .15rem; width: 1.1rem; height: 1.1rem; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-mono); font-size: .7rem; font-weight: 700; color: var(--bg); background: var(--h-caution); }
.pop-questions li::before { content: "?"; background: var(--accent); }
.pop-statgrid { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.pop-statgrid figure { margin: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .9rem 1rem; background: color-mix(in srgb, var(--ink) 1.5%, transparent); }
.pop-statgrid blockquote { margin: 0; color: var(--ink); font-size: .95rem; }
.pop-statgrid figcaption { font-family: var(--font-mono); font-size: .68rem; color: var(--ink-3); margin-top: .5rem; }
.pop-badgecards { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.pop-badgecard { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.05rem; background: color-mix(in srgb, var(--ink) 1.5%, transparent); display: flex; flex-direction: column; gap: .6rem; transition: border-color .15s; }
.pop-badgecard:hover { border-color: color-mix(in srgb, var(--hc) 50%, transparent); }
.pop-badgecard p { margin: 0; font-size: .9rem; }
.pop-badgecard .pop-note { margin-top: auto; }
.pop-badgecard h3 { font-size: 1.02rem; margin: 0; color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .pop-browse { grid-template-columns: minmax(0, 1fr); }
  .pop-filters { position: static; max-height: none; }
  .pop-two { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .pop-game-hero { grid-template-columns: 1fr; }
  .pop-game-hero .pop-cover { width: 150px; }
  .pop-grid { grid-template-columns: 1fr; }
  .pop-card__link { grid-template-columns: 76px 1fr; }
  .pop-search { flex-direction: column; }
  .pop-taglist li { grid-template-columns: 1fr; }
  .pop-toc { top: 76px; overflow-x: auto; flex-wrap: nowrap; }
  .pop-toc a { white-space: nowrap; }
}

/* -- Rating boards comparison (parents.php, lib/ratings.php) -- */
.pop-rcmp { margin-top: clamp(2rem, 4vw, 2.8rem); }
.pop-rcmp__title { font-size: clamp(1.2rem, 2.4vw, 1.5rem); color: var(--ink); margin: 0 0 .5rem; }
.pop-rcmp__lead { color: var(--ink-2); max-width: 72ch; margin: 0 0 1.2rem; }
.pop-rcmp__sub { font-size: 1.05rem; color: var(--ink); margin: 2rem 0 .8rem; }
.pop-rcmp .pop-note { margin-top: .7rem; }

.pop-rcmp__table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .9rem; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: color-mix(in srgb, var(--ink) 1.5%, transparent); }
.pop-rcmp__table thead th { text-align: left; vertical-align: bottom; font-family: var(--font-mono); font-size: .66rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); padding: .7rem .75rem; background: var(--panel); border-bottom: 1px solid var(--line-2); }
.pop-rcmp__table thead th small { display: block; margin-top: .15rem; font-size: .68rem; font-weight: 400; letter-spacing: .02em; text-transform: none; color: var(--ink-3); }
.pop-rcmp__table tbody th, .pop-rcmp__table td { padding: .75rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.pop-rcmp__table tbody tr:last-child > * { border-bottom: 0; }
.pop-rcmp__table tbody th { width: 12rem; color: var(--ink); font-weight: 600; font-size: .92rem; }
.pop-rcmp__table td { white-space: nowrap; }
.pop-rcmp__table td.pop-rcmp__notes { width: 40%; white-space: normal; font-size: .84rem; color: var(--ink-2); }
.pop-rcmp__notes ul { margin: 0; padding-left: 1rem; display: grid; gap: .3rem; }
.pop-rcmp__notes li::marker { color: var(--accent); }
.pop-rcmp__pill { display: inline-flex; }
.pop-rcmp .pop-rating.acb-rc { border-style: dashed; border-color: var(--ink-3); }
.pop-rcmp .pop-rating.acb-rc b { background: var(--panel-2); color: var(--ink); }

.pop-rcmp__legend { display: grid; gap: .6rem; }
.pop-rcmp__board { border: 1px solid var(--line); border-radius: var(--radius-sm); background: color-mix(in srgb, var(--ink) 1.5%, transparent); }
.pop-rcmp__board[open] { border-color: var(--line-2); }
.pop-rcmp__board summary { display: flex; align-items: center; gap: .85rem; padding: .8rem 1rem; cursor: pointer; list-style: none; }
.pop-rcmp__board summary::-webkit-details-marker { display: none; }
.pop-rcmp__board summary::after { content: "+"; margin-left: auto; padding-left: .5rem; font-family: var(--font-mono); font-size: 1.1rem; color: var(--accent); }
.pop-rcmp__board[open] summary::after { content: "–"; }
.pop-rcmp__board[open] summary { border-bottom: 1px solid var(--line); }
.pop-rcmp__code { flex: none; min-width: 3.4rem; padding: .2rem .45rem; border-radius: 0; text-align: center; font-family: var(--font-mono); font-size: .72rem; font-weight: 700; letter-spacing: .08em; color: var(--accent-ink); background: var(--accent); }
.pop-rcmp__name { color: var(--ink); font-weight: 600; line-height: 1.25; }
.pop-rcmp__name small { display: block; margin-top: .15rem; font-family: var(--font-mono); font-size: .7rem; font-weight: 400; color: var(--ink-3); }
.pop-rcmp__body { padding: 1rem 1.1rem 1.1rem; }
.pop-rcmp__facts { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1rem; margin: 0 0 .4rem; font-size: .9rem; }
.pop-rcmp__facts dt { padding-top: .2rem; font-family: var(--font-mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.pop-rcmp__facts dd { margin: 0; color: var(--ink-2); }
.pop-rcmp__group { margin: 1.1rem 0 .5rem; font-family: var(--font-mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.pop-rcmp__cats { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.pop-rcmp__cats li { display: grid; grid-template-columns: 6.4rem 1fr; gap: .75rem; align-items: start; font-size: .88rem; color: var(--ink-2); }
.pop-rcmp__cats li .pop-rating { justify-self: start; }
.pop-rcmp__cats b { color: var(--ink); font-weight: 600; }
.pop-rcmp__terms { margin: 0; display: grid; gap: .35rem 1.4rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.pop-rcmp__terms div { font-size: .86rem; line-height: 1.45; }
.pop-rcmp__terms dt { display: inline; font-weight: 600; color: var(--ink); }
.pop-rcmp__terms dt::after { content: " — "; font-weight: 400; color: var(--ink-3); }
.pop-rcmp__terms dd { display: inline; margin: 0; color: var(--ink-2); }
.pop-rcmp__apps p { max-width: 75ch; color: var(--ink-2); }

/* Phones: each age band becomes a card, each rating labelled with its board. */
@media (max-width: 720px) {
  .pop-rcmp__table, .pop-rcmp__table tbody { display: block; border: 0; border-radius: 0; background: none; overflow: visible; }
  .pop-rcmp__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .pop-rcmp__table tbody tr { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem .8rem; margin-bottom: .7rem; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: color-mix(in srgb, var(--ink) 1.5%, transparent); }
  .pop-rcmp__table tbody th, .pop-rcmp__table td, .pop-rcmp__table td.pop-rcmp__notes { display: block; width: auto; padding: 0; border: 0; }
  .pop-rcmp__table tbody th { grid-column: 1 / -1; font-size: 1rem; }
  .pop-rcmp__table td[data-label]::before { content: attr(data-label); display: block; margin-bottom: .3rem; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
  .pop-rcmp__table td.is-none, .pop-rcmp__table td.pop-rcmp__notes:empty { display: none; }
  .pop-rcmp__table td.pop-rcmp__notes { grid-column: 1 / -1; padding-top: .7rem; border-top: 1px solid var(--line); }
  .pop-rcmp__board summary { padding: .75rem .85rem; gap: .7rem; }
  .pop-rcmp__body { padding: .9rem .85rem 1rem; }
  .pop-rcmp__facts { grid-template-columns: 1fr; gap: .15rem; }
  .pop-rcmp__facts dd { margin-bottom: .55rem; }
  .pop-rcmp__cats li { grid-template-columns: 1fr; gap: .3rem; }
}

/* -- Content badges: "what's in it" (badges.php#content, method.php, game.php#ratings, games.php filter) --
   Neutral square labels with a side bar: no money-health colour. Level pills: mild / moderate / strong. */
.h-neutral { --hc: var(--h-neutral); }
.pop-badge--content {
  border: 1.5px solid color-mix(in srgb, var(--hc) 70%, transparent); border-radius: 5px;
  background: color-mix(in srgb, var(--bg) 60%, transparent); box-shadow: inset 3px 0 0 var(--hc);
  padding-left: .75rem;
}
.pop-badge--sm.pop-badge--content { padding-left: .6rem; }
.pop-badge--lg.pop-badge--content { padding-left: 1.05rem; border-radius: 7px; box-shadow: inset 4px 0 0 var(--hc); }
.pop-mini--content { border-radius: 4px; }

.pop-level {
  --lc: var(--lv-moderate);
  display: inline-flex; align-items: center; height: 17px; padding: 0 .45rem; border-radius: 999px;
  font-family: var(--font-mono); font-size: .58rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; line-height: 1;
  color: var(--lc); border: 1px solid color-mix(in srgb, var(--lc) 55%, transparent); background: color-mix(in srgb, var(--lc) 12%, transparent);
  white-space: nowrap;
}
.l-mild { --lc: var(--lv-mild); }
.l-moderate { --lc: var(--lv-moderate); }
.l-strong { --lc: var(--lv-strong); }
.pop-level.l-strong { background: var(--lc); border-color: var(--lc); color: var(--bg); }
.pop-badge .pop-level { margin-left: .2rem; }
.pop-badge--lg .pop-level { height: 22px; font-size: .68rem; padding: 0 .6rem; }

.pop-levels { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.pop-levels li { display: grid; grid-template-columns: 5.6rem 1fr; gap: .7rem; align-items: start; font-size: .88rem; color: var(--ink-2); }
.pop-levels li .pop-level { justify-self: start; margin-top: .15rem; }
.pop-levels--row { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: .8rem; margin: 1rem 0 1.6rem; }
.pop-levels--row li { grid-template-columns: auto 1fr; }
.pop-levels-inline { display: inline-flex; gap: .35rem; flex-wrap: wrap; }
.pop-levelhead { display: flex; align-items: center; gap: .7rem; margin: 1.8rem 0 .9rem; font-family: var(--font-mono); font-size: .78rem; font-weight: 500; color: var(--ink-3); }
.pop-levelhead:first-of-type { margin-top: .4rem; }
.pop-levelhead .pop-level { height: 22px; font-size: .68rem; padding: 0 .6rem; }
.pop-contentlist .pop-badge { align-self: start; justify-self: start; }
@media (min-width: 641px) {
  .pop-contentlist li { grid-template-columns: 14.6rem 1fr; }
}

/* Card hint: only strong content, one small chip beside the ACB rating. */
.pop-card__content {
  display: inline-flex; align-items: center; gap: .3rem; height: 22px; padding: 0 .45rem; border-radius: 5px;
  border: 1px solid color-mix(in srgb, var(--lv-strong) 45%, transparent); background: color-mix(in srgb, var(--lv-strong) 8%, transparent);
  font-family: var(--font-mono); font-size: .62rem; color: var(--ink-2); white-space: nowrap;
}
.pop-card__content i { width: 7px; height: 7px; border-radius: 50%; background: var(--lv-strong); flex: none; }

.pop-filter-hint { margin: -.1rem 0 .45rem; font-size: .76rem; line-height: 1.4; color: var(--ink-3); }

/* ============================================================
   Greed Index polish: home hero with a worked example, card badge rows that scroll sideways, instant tooltips on
   icon-only badges, lighter logo tiles. Appended as one block; where it overrides a rule above, it says so.
   ============================================================ */

/* -- Home hero: text in the left two-thirds, one example card (Harmful / Fair toggle) in the right third.
   Below 960px they stack: text first, then the toggle and card. -- */
.pop-hero__grid { display: grid; gap: clamp(1.6rem, 4vw, 3.4rem); align-items: center; }
.pop-hero--split .pop-hero__grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.pop-hero__title { margin: 0 0 .9rem; }
.pop-hero__title > span { display: block; }
.pop-hero .lead { margin: 0; }
.pop-hero .pop-search { margin: 1.6rem 0 .9rem; }
/* Independence line under the search: quiet, one glyph, links to the bias statement on about.php. */
.pop-indie { display: flex; gap: .55rem; align-items: flex-start; max-width: 640px; margin: 0; font-size: .82rem; line-height: 1.5; color: var(--ink-3); }
.pop-indie svg { width: 16px; height: 16px; flex: none; margin-top: .12rem; color: var(--accent); }
.pop-indie b { color: var(--ink-2); font-weight: 600; }
.pop-indie a { color: var(--ink-2); border-bottom: 1px solid var(--line-2); }
.pop-indie a:hover { color: var(--accent); border-bottom-color: var(--accent); }

.pop-hero__side { min-width: 0; }
/* The toggle needs pop.js; without it (no .pop-js on <html>) it stays hidden and both cards show, stacked. */
.pop-spot__toggle { display: none; gap: .25rem; margin: 0 0 .6rem; padding: 3px; border: 1px solid var(--line); border-radius: 0; background: color-mix(in srgb, var(--ink) 2%, transparent); }
.pop-js .pop-spot__toggle { display: inline-flex; }
.pop-spot__tab {
  font-family: var(--font-mono); font-size: .64rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; line-height: 1;
  color: var(--ink-3); background: none; border: 1px solid transparent; border-radius: 0; padding: .42rem .7rem; cursor: pointer;
  transition: color .15s, background .15s, border-color .15s;
}
.pop-spot__tab:hover { color: var(--ink); }
.pop-spot__tab[aria-selected="true"] { color: var(--hc); border-color: color-mix(in srgb, var(--hc) 45%, transparent); background: color-mix(in srgb, var(--hc) 12%, transparent); }
.pop-spot__panel + .pop-spot__panel { margin-top: .8rem; }
/* With JS the cards share one grid cell, so the column is as tall as the taller card and switching never moves the
   hero text; the hidden one is visibility: hidden (also out of the tab order and the accessibility tree). */
.pop-js .pop-hero__side { display: grid; grid-template-columns: minmax(0, 1fr); }
.pop-js .pop-spot__toggle { justify-self: start; }
.pop-js .pop-spot__panel { grid-area: 2 / 1; margin-top: 0; display: grid; }
.pop-js .pop-spot__panel:not(.is-active) { visibility: hidden; }

.pop-spot {
  position: relative; overflow: hidden; padding: .95rem 1.1rem 1rem 1.25rem; display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel);
  box-shadow: var(--shadow-sm);
}
.pop-spot::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--hc); opacity: .85; }
.pop-spot__head { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: .85rem; align-items: center; }
.pop-spot__cover .pop-cover__ph { font-size: 1.1rem; }
.pop-spot__title { font-size: 1.3rem; line-height: 1.15; margin: 0 0 .45rem; }
.pop-spot__title a:hover { color: var(--accent); }
.pop-spot .pop-health { font-size: .66rem; padding: .2rem .5rem; }
.pop-spot__why { font-size: .88rem; line-height: 1.45; color: var(--ink-2); margin: .75rem 0 .7rem; }
.pop-spot__badges { gap: .4rem; }
.pop-spot__foot { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .3rem 1rem; margin-top: auto; padding-top: .8rem; }
.pop-spot__all { display: inline-flex; gap: .45rem; font-size: .86rem; font-weight: 600; color: var(--accent); }
.pop-spot__count { font-family: var(--font-mono); font-size: .66rem; color: var(--ink-3); }

@media (max-width: 960px) {
  .pop-hero--split .pop-hero__grid { grid-template-columns: minmax(0, 1fr); }
  .pop-hero__side { max-width: 560px; }
}
/* Phones: the search form stacks (rule above), where the input's flex: 1 squashed it to half height. */
@media (max-width: 640px) {
  .pop-search input { flex: none; }
}

/* -- Cards: the title link is stretched over the whole card, so the badge row can hold links of its own. This
   replaces the whole-card link (.pop-card__link above is no longer output). -- */
.pop-card { transition: border-color .18s, top .18s; }
/* Lift with top, not transform (overrides .pop-card:hover above): a transform would trap the badges' fixed tooltips. */
.pop-card:hover { transform: none; top: -2px; }
.pop-card__in { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: .9rem; padding: .85rem .9rem .85rem 1rem; height: 100%; }
.pop-card__body { min-width: 0; }
.pop-card__go::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--radius-sm); }
.pop .pop-card__go:focus-visible { outline: none; }
.pop-card__go:focus-visible::after { outline: 2px solid var(--accent); outline-offset: -2px; }
.pop-card__content { display: flex; width: fit-content; margin-top: .5rem; }

/* Badge row: one line that scrolls sideways (hidden scrollbar, momentum on touch, drag with a mouse via pop.js),
   above the stretched link. Edge fades show while there is more to see in that direction. */
.pop-card__badges { --row-fade: var(--panel); position: relative; z-index: 2; }
.pop-card__minis {
  display: flex; flex-wrap: nowrap; gap: .3rem; align-items: center;
  overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  padding: 4px; margin: -4px; /* room for focus rings, which the scroller would otherwise clip */
  scroll-padding-inline: 32px;
}
.pop-card__minis::-webkit-scrollbar { display: none; }
.pop-card__minis a { -webkit-user-drag: none; }
.pop-card__badges.is-scrollable .pop-card__minis { cursor: grab; }
.pop-card__minis.is-dragging { cursor: grabbing; user-select: none; }
.pop-card__badges::before, .pop-card__badges::after {
  content: ""; position: absolute; top: -4px; bottom: -4px; width: 34px; pointer-events: none; opacity: 0; transition: opacity .2s; z-index: 1;
}
.pop-card__badges::before { left: -4px; background: linear-gradient(270deg, transparent, var(--row-fade) 85%); }
.pop-card__badges::after { right: -4px; background: linear-gradient(90deg, transparent, var(--row-fade) 85%); }
.pop-card__badges.is-scrollable:not(.at-start)::before, .pop-card__badges.is-scrollable:not(.at-end)::after { opacity: 1; }

@media (max-width: 640px) {
  .pop-card__in { grid-template-columns: 76px minmax(0, 1fr); }
}

/* -- Instant tooltips on icon-only badges (pop_badge_mini: data-tip on the outer link). They show on hover and keyboard
   focus with no delay. Without JS they sit above the badge; pop.js switches them to fixed positioning (centred,
   clamped inside the window, flipped below near the top) so a scrolling row or a card can't clip them. -- */
.pop-tip { position: relative; display: inline-flex; flex: none; border-radius: 5px; }
.pop-tip::after, .pop-tip-measure {
  box-sizing: border-box; width: max-content; max-width: min(260px, calc(100vw - 16px));
  padding: .36rem .55rem; border: 1px solid transparent; border-radius: 0;
  font-family: var(--font-mono); font-size: .68rem; font-weight: 600; line-height: 1.35; letter-spacing: .02em;
  text-align: left; text-transform: none; white-space: normal;
}
.pop-tip::after {
  content: attr(data-tip);
  position: absolute; left: 50%; bottom: calc(100% + 7px); transform: translateX(-50%);
  z-index: 50; pointer-events: none; opacity: 0; visibility: hidden;
  color: var(--band-ink); background: var(--band); border-color: color-mix(in srgb, var(--hc) 70%, var(--band));
  box-shadow: var(--shadow-sm);
}
.pop-tip:hover::after, .pop-tip:focus-visible::after { opacity: 1; visibility: visible; }
.pop-js .pop-tip::after { position: fixed; left: var(--tip-x, -9999px); top: var(--tip-y, 0); bottom: auto; transform: translate(-50%, -100%); }
.pop-js .pop-tip.tip-below::after { transform: translateX(-50%); }
.is-dragging .pop-tip::after { visibility: hidden; }
.pop-tip-measure { position: fixed; left: -9999px; top: 0; visibility: hidden; pointer-events: none; }

/* -- Logo tiles: light, so a logo reads as deliberate rather than as a grey "no image" placeholder (overrides the
   .pop-cover.is-logo colours above). -- */
.pop-cover.is-logo { background: linear-gradient(160deg, #f4f5f9, #d3d6e2); border-color: color-mix(in srgb, var(--ink) 20%, transparent); }
.pop-cover.is-logo img { padding: 9%; }

/* -- Companies: "who makes it" (company.php, companies.php, game.php#makers, method.php, badges.php#company) --
   Company badges are hexagonal plaques in the health colours (a track-record scale, never a money rating).
   Also: the "What it does to the fun" section on method.php and the verdict blurb on game.php. */
.pop-badge--company {
  isolation: isolate; padding: 0 1.05rem 0 .95rem;
  background: color-mix(in srgb, var(--hc) 75%, transparent);
  clip-path: polygon(9px 0, calc(100% - 9px) 0, 100% 50%, calc(100% - 9px) 100%, 9px 100%, 0 50%);
}
.pop-badge--company::before {
  content: ""; position: absolute; inset: 1.5px; z-index: -1;
  background: linear-gradient(90deg, color-mix(in srgb, var(--hc) 16%, var(--bg)), color-mix(in srgb, var(--hc) 8%, var(--bg)));
  clip-path: polygon(8.2px 0, calc(100% - 8.2px) 0, 100% 50%, calc(100% - 8.2px) 100%, 8.2px 100%, 0 50%);
}
.pop-badge--sm.pop-badge--company { padding: 0 .85rem 0 .8rem; clip-path: polygon(7px 0, calc(100% - 7px) 0, 100% 50%, calc(100% - 7px) 100%, 7px 100%, 0 50%); }
.pop-badge--sm.pop-badge--company::before { clip-path: polygon(6.3px 0, calc(100% - 6.3px) 0, 100% 50%, calc(100% - 6.3px) 100%, 6.3px 100%, 0 50%); }
.pop-badge--lg.pop-badge--company { padding: 0 1.6rem 0 1.4rem; clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 14px 100%, 0 50%); }
.pop-badge--lg.pop-badge--company::before { inset: 2px; clip-path: polygon(13px 0, calc(100% - 13px) 0, 100% 50%, calc(100% - 13px) 100%, 13px 100%, 0 50%); }
.pop-mini--company { border: 0; background: color-mix(in srgb, var(--hc) 22%, transparent); clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 50%, calc(100% - 6px) 100%, 6px 100%, 0 50%); width: 30px; }

/* Verdict blurb (game.php, under the money verdict) and "What it does to the fun" (method.php) */
.pop-verdict-blurb { margin: -.4rem 0 1.2rem; max-width: 70ch; font-size: 1.05rem; color: var(--ink); padding-left: .8rem; border-left: 3px solid var(--hc); }
.pop-fun { margin: 0 0 .4rem; padding: clamp(1rem, 2.6vw, 1.5rem) clamp(1rem, 2.6vw, 1.6rem); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius-sm); background: color-mix(in srgb, var(--ink) 2%, transparent); max-width: 900px; }
.pop-fun .pop-h2 { font-size: clamp(1.2rem, 2.4vw, 1.5rem); margin-bottom: .6rem; }
.pop-fun .pop-prose p:last-child { margin-bottom: 0; }

/* Company badge list (company page, game page) */
.pop-cobadges .pop-badge { align-self: start; justify-self: start; }
.pop-cobadges .pop-tag-side p b { color: var(--ink); font-weight: 600; }
.pop-cobadges .pop-tag-side .muted { font-family: var(--font-body); font-size: .86rem; color: var(--ink-2); }
@media (min-width: 641px) { .pop-cobadges li { grid-template-columns: 13.5rem 1fr; } }
.pop-maker .pop-cobadges li { padding: .5rem 0; }
@media (min-width: 641px) { .pop-maker .pop-cobadges li { grid-template-columns: 11rem 1fr; } }

/* Event kind chips and the dated timeline */
.pop-evkind { display: inline-flex; align-items: center; height: 19px; padding: 0 .45rem; border-radius: 4px; border: 1px solid var(--line-2); font-family: var(--font-mono); font-size: .6rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.pop-evkind.ev-positive { color: var(--h-fair); border-color: color-mix(in srgb, var(--h-fair) 45%, transparent); background: color-mix(in srgb, var(--h-fair) 8%, transparent); }
.pop-evkind.ev-regulator, .pop-evkind.ev-court { color: var(--ink-2); border-color: var(--ink-3); }
.pop-timeline { list-style: none; margin: 0; padding: 0 0 0 1.1rem; border-left: 2px solid var(--line-2); display: grid; gap: 1.1rem; max-width: 900px; }
.pop-ev { position: relative; display: grid; grid-template-columns: 11rem 1fr; gap: .3rem 1.2rem; }
.pop-ev::before { content: ""; position: absolute; left: calc(-1.1rem - 6px); top: .35rem; width: 10px; height: 10px; border-radius: 50%; background: var(--bg); border: 2px solid var(--ink-3); }
.pop-ev.ev-positive::before { border-color: var(--h-fair); }
.pop-ev.ev-regulator::before, .pop-ev.ev-court::before { border-color: var(--ink); }
.pop-ev__when { display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; }
.pop-ev__when time { font-family: var(--font-mono); font-size: .78rem; color: var(--ink); }
.pop-ev__body h4 { margin: 0; font-size: 1rem; color: var(--ink); line-height: 1.3; }
.pop-ev__body p { margin: .3rem 0 .35rem; font-size: .92rem; color: var(--ink-2); }
.pop-ev__src { display: inline-block; font-family: var(--font-mono); font-size: .72rem; color: var(--accent); }
.pop-ev__src:hover { text-decoration: underline; }
.pop-timeline--compact { gap: .7rem; }
.pop-timeline--compact .pop-ev { grid-template-columns: 1fr; gap: .2rem; }
.pop-timeline--compact .pop-ev__when { flex-direction: row; align-items: center; gap: .5rem; }
.pop-timeline--compact .pop-ev__body h4 { font-size: .92rem; font-weight: 600; }

/* Game page: "Who makes it" */
.pop-makers { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.pop-maker { border: 1px solid var(--line); border-top: 3px solid var(--hc); border-radius: var(--radius); padding: clamp(1rem, 2.4vw, 1.4rem); background: var(--panel); min-width: 0; }
.pop-maker__head h3 { margin: 0; font-size: 1.25rem; }
.pop-maker__head h3 a { color: var(--ink); }
.pop-maker__head h3 a:hover { color: var(--accent); }
.pop-maker__meta { margin: .2rem 0 .6rem; font-size: .85rem; color: var(--ink-3); }
.pop-maker__meta b { color: var(--ink-2); font-weight: 600; }
.pop-maker__sub { margin: 1rem 0 .6rem; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }
.pop-maker__more { margin: 1rem 0 0; font-size: .9rem; }
.pop-maker__note { margin-top: 1rem; }

/* Company page */
.pop-company-hero { padding: clamp(1.4rem, 3.4vw, 2.4rem) 0 1.2rem; }
.pop-company-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 0 0 .4rem; }
.pop-company-hero .pop-stats { max-width: 900px; }
.pop-codl { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1rem; margin: 0; font-size: .9rem; }
.pop-codl dt { font-family: var(--font-mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); padding-top: .2rem; }
.pop-codl dd { margin: 0; color: var(--ink-2); min-width: 0; }
.pop-cogames { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; max-width: 900px; }
.pop-cogames li { border: 1px solid var(--line); border-left: 3px solid var(--hc); border-radius: var(--radius-sm); background: color-mix(in srgb, var(--ink) 1.5%, transparent); }
.pop-cogames a { display: grid; grid-template-columns: 44px 1fr auto; gap: .9rem; align-items: center; padding: .55rem .8rem; }
.pop-cogames a:hover { background: color-mix(in srgb, var(--ink) 3%, transparent); }
.pop-cogames__cover { width: 44px; border-radius: 0; }
.pop-cogames__cover .pop-cover__ph { font-size: .8rem; }
.pop-cogames__main { min-width: 0; }
.pop-cogames__main b { display: block; color: var(--ink); font-weight: 600; }
.pop-cogames__main small { font-family: var(--font-mono); font-size: .7rem; color: var(--ink-3); }
.pop-cogames__side { display: flex; flex-direction: column; align-items: flex-end; gap: .35rem; }
.pop-cogames .pop-health { font-size: .64rem; padding: .15rem .5rem; }

/* Companies index and method page list */
.pop-cocards { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.pop-cocard { border: 1px solid var(--line); border-top: 3px solid var(--hc); border-radius: var(--radius-sm); background: color-mix(in srgb, var(--ink) 1.5%, transparent); transition: border-color .15s, transform .15s; }
.pop-cocard:hover { border-color: color-mix(in srgb, var(--hc) 55%, transparent); transform: translateY(-2px); }
.pop-cocard__link { display: flex; flex-direction: column; gap: .6rem; padding: 1rem 1.05rem; height: 100%; }
.pop-cocard h3 { margin: 0; font-size: 1.15rem; color: var(--ink); }
.pop-cocard__meta { margin: -.35rem 0 0; font-size: .82rem; color: var(--ink-3); }
.pop-cocard__foot { margin-top: auto; }
.pop-colist .pop-colist__name { color: var(--ink); font-weight: 600; font-size: 1.02rem; }
.pop-colist .pop-colist__name:hover { color: var(--accent); }
@media (min-width: 641px) { .pop-colist li { grid-template-columns: 13rem 1fr; } }

@media (max-width: 640px) {
  .pop-ev { grid-template-columns: 1fr; }
  .pop-ev__when { flex-direction: row; align-items: center; gap: .5rem; }
  .pop-cogames a { grid-template-columns: 40px 1fr; }
  .pop-cogames__side { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: flex-start; }
  .pop-codl { grid-template-columns: 1fr; gap: .1rem; }
  .pop-codl dd { margin-bottom: .45rem; }
}

/* -- Phones: a button whose label carries a badge name ("Find games without content held back for sale") may wrap
   instead of pushing the page wider than the screen (house.css sets .btn to white-space: nowrap). -- */
@media (max-width: 640px) {
  .pop .btn { max-width: 100%; white-space: normal; text-align: left; }
}
/* Same for the long health pill ("Harmful · Chance, compulsion or exploitation" in the game page's verdict panel and on
   badge pages): its short description may wrap under the label rather than widen the column past the screen. */
@media (max-width: 640px) {
  .pop-health:has(small) { flex-wrap: wrap; white-space: normal; row-gap: .1rem; border-radius: 14px; }
}

/* ============================================================
   Home hero example switcher (markup in index.php, behaviour in pop.js): ‹ › arrow buttons either side of the
   Harmful / Fair pills, the three centred over the card; a hairline countdown bar under the pills (pop.js advances the
   examples every 6 s); a 250 ms crossfade between the cards. Appended as one block; it overrides the toggle and panel
   rules of the "Home hero" part of the polish block above where they meet.
   ============================================================ */
/* Without pop.js (no .pop-js on <html>) the whole switcher stays hidden and both cards show, stacked, as before. */
.pop-spot__nav { display: none; }
.pop-js .pop-spot__nav { display: flex; align-items: center; justify-content: center; gap: .5rem; margin: 0 0 .85rem; min-width: 0; container-type: inline-size; }
.pop-js .pop-spot__nav .pop-spot__toggle { margin: 0; }
.pop-spot__pills { position: relative; display: flex; min-width: 0; }
/* Arrows: round, the pill group's height, border and tint. */
.pop-spot__arrow {
  flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; cursor: pointer;
  color: var(--ink-3); background: color-mix(in srgb, var(--ink) 2%, transparent); border: 1px solid var(--line); border-radius: 0;
  transition: color .15s, background .15s, border-color .15s;
}
.pop-spot__arrow svg { width: 15px; height: 15px; }
.pop-spot__arrow:hover { color: var(--ink); border-color: var(--line-2); background: color-mix(in srgb, var(--ink) 5%, transparent); }
.pop-spot__arrow:active { background: color-mix(in srgb, var(--ink) 8%, transparent); }
/* Keep the pills and arrows round under the focus ring (the .pop button:focus-visible rule at the top squares them). */
.pop .pop-spot__arrow:focus-visible, .pop .pop-spot__tab:focus-visible { border-radius: 0; }
/* A column too narrow for "‹ HARMFUL EXAMPLE | FAIR EXAMPLE ›" (961–1100px windows, small phones) shows just "HARMFUL |
   FAIR"; " example" stays in the pills' accessible names. The nav is the query container (it holds no fixed-position
   tooltips, which containment could trap). */
@container (max-width: 345px) {
  .pop-spot__tab-more { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
/* Countdown bar: under the pills, in the colour of the example on show (pop.js sets --hc on it), filled by pop.js
   with a transform. Shown only while rotation is on (.is-auto on the aside: JS running and no reduced motion);
   positioned, so it never moves anything. */
.pop-spot__progress { position: absolute; left: 16px; right: 16px; bottom: -7px; height: 2px; border-radius: 2px; overflow: hidden; background: color-mix(in srgb, var(--ink) 6%, transparent); opacity: 0; transition: opacity .2s; pointer-events: none; }
.is-auto .pop-spot__progress { opacity: 1; }
.pop-spot__progress > span { display: block; height: 100%; border-radius: inherit; background: var(--hc, var(--ink-3)); opacity: .7; transform: scaleX(0); transform-origin: left center; }
/* Crossfade (the cards still share one grid cell, so nothing moves): the card coming in sits on top and fades in over
   250 ms; the one going out stays as it is underneath until then, and only then hides (visibility: hidden as before,
   so it leaves the tab order and the accessibility tree). An opacity fade isn't motion, so it stays with reduced motion. */
.pop-js .pop-spot__panel { position: relative; transition: opacity .25s ease; }
.pop-js .pop-spot__panel.is-active { z-index: 1; }
.pop-js .pop-spot__panel:not(.is-active) { opacity: 0; transition: opacity 0s linear .25s, visibility 0s linear .25s; }

/* ============================================================
   Key art (art_url; pop_art() in lib/view.php): a wide marketing picture or screenshot on the home page example card
   and as the game page banner. Cards and the browse table keep the cover. Also: square App Store icons used as covers
   (.is-icon, added by pop_cover) show whole instead of cropped to 3:4. Appended as one block; it only adds to the
   rules above (the example card keeps its look when a game has no key art).
   ============================================================ */
.pop-art { position: relative; overflow: hidden; background: var(--panel-2); }
.pop-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* App icons as covers: the whole icon, rounded like an app icon, centred on the dark tile. */
.pop-cover.is-icon img { inset: 50% auto auto 50%; width: 80%; height: auto; aspect-ratio: 1; translate: -50% -50%; border-radius: 22%; object-fit: cover; box-shadow: 0 4px 12px rgba(0,0,0,.35); }

/* -- Home example card with key art: a 16:9 picture (rounded, inside the card's padding), the title, health pill and a
   small cover inset over its lower edge on a dark gradient; the text below is set a little tighter so the card grows
   as little as possible. If the picture fails twice (pop_img_retry marks it .is-failed), the card falls back to the
   plain head. -- */
.pop-spot--art { padding-top: .75rem; padding-bottom: .85rem; }
.pop-spot__media { position: relative; display: flex; align-items: flex-end; aspect-ratio: 1.9; border-radius: 0; overflow: hidden; background: #0e0f16; }
.pop-spot__art { position: absolute; inset: 0; }
.pop-spot__media::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(10,11,16,0) 40%, rgba(10,11,16,.62) 68%, rgba(10,11,16,.94) 100%); }
.pop-spot--art .pop-spot__head { position: relative; z-index: 1; width: 100%; grid-template-columns: 40px minmax(0, 1fr); gap: .7rem; align-items: end; padding: 0 .75rem .7rem; }
.pop-spot--art .pop-spot__cover { border-color: rgba(255,255,255,.22); box-shadow: 0 6px 16px rgba(0,0,0,.55); }
.pop-spot--art .pop-spot__cover .pop-cover__ph { font-size: .8rem; }
.pop-spot--art .pop-spot__title { font-size: 1.22rem; margin: 0 0 .3rem; text-shadow: 0 1px 10px rgba(0,0,0,.7); }
.pop-spot--art .pop-spot__title a { color: #fff; }
.pop-spot--art .pop-spot__why { margin: .5rem 0 .45rem; font-size: .85rem; line-height: 1.4; }
.pop-spot--art .pop-spot__badges { gap: .35rem; }
.pop-spot--art .pop-spot__foot { padding-top: .45rem; }
.pop-spot__media:has(> .pop-spot__art.is-failed) { display: block; aspect-ratio: auto; overflow: visible; background: none; }
.pop-spot__media:has(> .pop-spot__art.is-failed)::after, .pop-spot__art.is-failed { display: none; }
.pop-spot__media:has(> .pop-spot__art.is-failed) .pop-spot__head { grid-template-columns: 58px minmax(0, 1fr); align-items: center; padding: 0; }
.pop-spot__media:has(> .pop-spot__art.is-failed) .pop-spot__title { text-shadow: none; }

/* -- Game page: the key art as a wide banner across the top of the hero, fading into the page; the cover and the title
   column overlap its lower part, where the gradient is darkest, so the text stays readable. A credit sits in the top
   corner. If the picture fails twice, the banner goes and the hero is laid out as without art. -- */
.pop-game-hero.has-art { padding-top: clamp(.7rem, 1.8vw, 1.1rem); }
.pop-game-banner { grid-column: 1 / -1; position: relative; height: clamp(180px, 30vw, 360px); margin-bottom: calc(-1 * clamp(84px, 11vw, 140px)); border-radius: var(--radius); overflow: hidden; background: #0e0f16; }
.pop-game-banner__art { position: absolute; inset: 0; background: none; }
.pop-game-banner__art img { object-position: 50% 30%; }
.pop-game-banner::after { content: ""; position: absolute; inset: -1px; pointer-events: none; background: linear-gradient(180deg, transparent 0%, transparent 28%, color-mix(in srgb, var(--bg) 82%, transparent) 58%, color-mix(in srgb, var(--bg) 97%, transparent) 74%, var(--bg) 88%); }
.pop-game-banner__credit { position: absolute; top: .55rem; right: .65rem; z-index: 1; max-width: calc(100% - 1.3rem); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-mono); font-size: .62rem; color: rgba(237,238,244,.78); background: rgba(10,11,16,.6); padding: .18rem .5rem; border-radius: 0; }
.pop-game-hero.has-art > :not(.pop-game-banner) { position: relative; z-index: 1; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="day"]) .pop-game-hero.has-art h1 { text-shadow: 0 2px 18px rgba(0,0,0,.65); } }
:root[data-theme="night"] .pop-game-hero.has-art h1 { text-shadow: 0 2px 18px rgba(0,0,0,.65); }
.pop-game-banner:has(> .is-failed) { display: none; }

/* ============================================================
   House frame (lib/view.php): the "you are here" bar carries the guide's own sections under the site menu.
   ============================================================ */
.pop-where .wrap { justify-content: space-between; gap: 8px 28px; padding-block: 10px; }
.pop-where__home { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; font-size: 16px; color: var(--ink); }
.pop-where__home:hover { color: var(--accent); }
.pop-subnav { display: flex; flex-wrap: wrap; gap: 2px 22px; }
.pop-subnav a { font: 600 15px/1.2 var(--font-body); color: var(--ink-2); padding: 8px 0 5px; border-bottom: 3px solid transparent; white-space: nowrap; }
.pop-subnav a:hover { color: var(--ink); border-bottom-color: var(--line); }
.pop-subnav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
@media (max-width: 760px) {
  .pop-where .wrap { padding-block: 10px 0; gap: 6px; }
  .pop-subnav { width: 100%; flex-wrap: nowrap; gap: 20px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-right: 24px;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
  .pop-subnav::-webkit-scrollbar { display: none; }
}
.footer-col .pop-footer-link { display: inline; padding: 0; color: var(--band-ink); border-bottom: 1px dashed var(--band-ink-2); }
.footer-col .pop-footer-link:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* The example card's title row sits on a dark picture in both modes, so it takes the bright colours (unless the
   picture failed and the row fell back onto the card). */
.pop-spot__media:not(:has(> .pop-spot__art.is-failed)) .pop-spot__head {
  --h-fair: #5ee38f; --h-watch: #ffc23a; --h-caution: #ff8a3d; --h-harmful: #ff5a7a; --h-none: #b7bacb;
}
