/* AskLoot web styles. Green design system from the holding page and flow prototype (tokens, type, radius, badges). */
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
:root {
  --bg: #07080d;
  --bg2: #0e1018;
  --panel: #131623;
  --panel2: #1a1e2e;
  --line: #262b40;
  --line2: #3b4262;
  --text: #eef0ff;
  --muted: #8d93b3;
  --neon: #b6ff3b;
  --cyan: #22d3ee;
  --violet: #8b5cf6;
  --official: #22d3ee;
  --auth: #a78bfa;
  --grey: #c3cad9;
  --danger: #fb7185;
  --warn: #fda4af;
  --grad: linear-gradient(90deg, var(--neon), var(--cyan));
  /* Shared with apps/holding/public/assets/styles.css; design-tokens.test.ts keeps the shared values equal. */
  --r: 14px;
  --text2: #c9cdea;
  --on-neon: #0a0d02;
  --maxw: 1240px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
}
body {
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(139, 92, 246, 0.14), transparent 60%),
    radial-gradient(700px 400px at 0% 10%, rgba(182, 255, 59, 0.08), transparent 60%), var(--bg);
}
a {
  color: var(--neon);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
img,
svg {
  display: block;
}
:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 2px;
}
/* Whole card link (stretched link): the card's one link (.card-link) covers the card with ::after, so a click
   anywhere on it, cover art included, opens the game. Other links in the card (.card-above: source, alert) sit above
   the overlay. The focus ring shows on the card, not on the title. */
.card {
  position: relative;
  cursor: pointer;
}
.card-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
}
.card-link:focus-visible {
  outline: none;
}
.card:focus-within {
  outline: 3px solid var(--cyan);
  outline-offset: 2px;
}
.card-above {
  position: relative;
  z-index: 3;
}
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.muted {
  color: var(--muted);
  font-weight: 500;
}
.small {
  font-size: 13px;
}
.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--neon);
  color: #0a0d02;
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 200;
  font-weight: 700;
}
.skip:focus {
  left: 12px;
  top: 12px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.dev-banner {
  background: rgba(34, 211, 238, 0.08);
  color: #a5f3fc;
  border-bottom: 1px solid rgba(34, 211, 238, 0.25);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  padding: 6px 12px;
}
.dev-banner .dot,
.example-pill .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  margin-right: 8px;
  box-shadow: 0 0 8px var(--cyan);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 8, 13, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(38, 43, 64, 0.6);
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.5px;
  color: var(--text);
}
.logo:hover {
  text-decoration: none;
}
.logo img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}
.logo span {
  color: var(--neon);
}
.header-search {
  flex: 1;
  max-width: 560px;
  display: flex;
  gap: 8px;
  background: var(--panel);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 4px 4px 4px 12px;
}
.header-search:focus-within {
  border-color: var(--neon);
}
.header-search input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text);
  font: inherit;
  font-size: 15px;
}

.btn-primary {
  background: var(--neon);
  color: #0a0d02;
  border: 0;
  border-radius: 12px;
  font-weight: 800;
  font-size: 16px;
  padding: 14px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  cursor: pointer;
  font-family: inherit;
}
.btn-primary:hover {
  box-shadow: 0 0 24px rgba(182, 255, 59, 0.5);
  text-decoration: none;
  color: #0a0d02;
}
.btn-primary.sm {
  padding: 8px 14px;
  font-size: 14px;
  border-radius: 10px;
}
.btn-ghost {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-ghost:hover {
  border-color: var(--line2);
  background: var(--panel2);
  text-decoration: none;
  color: var(--text);
}

/* Home */
.hero {
  text-align: center;
  padding: 72px 0 56px;
}
.eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(182, 255, 59, 0.35);
  color: var(--neon);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}
h1 {
  font-size: clamp(34px, 5.4vw, 64px);
  line-height: 1.02;
  margin: 0 0 16px;
  font-weight: 900;
  letter-spacing: -2px;
}
.neon {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.sub {
  color: var(--muted);
  font-size: 17px;
  max-width: 620px;
  margin: 0 auto 32px;
}
.prompt {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 820px;
  margin: 0 auto;
  background: var(--panel);
  border: 1.5px solid var(--line);
  border-radius: 18px;
  padding: 8px 8px 8px 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.prompt:focus-within {
  border-color: var(--neon);
}
.prompt input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text);
  font-size: 19px;
  padding: 14px 4px;
  font-family: inherit;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 900px;
  margin: 18px auto 0;
}
.chip {
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 14px;
}
.chip:hover {
  border-color: var(--neon);
  text-decoration: none;
  color: var(--text);
}
.chip.on {
  border-color: var(--neon);
  color: var(--neon);
}
.chip .tag {
  color: var(--muted);
  font-size: 12px;
  margin-left: 6px;
}

/* Results */
main {
  padding-bottom: 48px;
}
.asked {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 22px 0 6px;
  font-size: 14px;
}
.pchip {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 13px;
  white-space: nowrap;
}
.pchip b {
  color: var(--muted);
  font-weight: 600;
}
.results-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 14px 0;
}
.results-title {
  margin: 0;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.6px;
}
.results-title .muted {
  font-size: 17px;
  letter-spacing: 0;
}
.bar-right {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.example-pill {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.08);
  border: 1px dashed rgba(34, 211, 238, 0.5);
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.seg {
  display: inline-flex;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 3px;
}
.seg a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 7px;
  white-space: nowrap;
}
.seg a:hover {
  color: var(--text);
  text-decoration: none;
}
.seg a[aria-current="true"] {
  background: var(--panel2);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line2);
}
.notice {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 12px;
  padding: 10px 14px;
  margin: 10px 0;
  font-size: 14px;
}
.notice.budget {
  background: rgba(182, 255, 59, 0.06);
  border-color: rgba(182, 255, 59, 0.35);
}
.notice.changed {
  background: rgba(251, 113, 133, 0.06);
  border-color: rgba(251, 113, 133, 0.35);
}
.currency-note {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 12px;
}

.answers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
/* OFFICIAL_CARD=off: two answers (Cheapest and Safest), no empty third column. */
.answers[data-answers="2"] {
  grid-template-columns: repeat(2, 1fr);
}
.acard {
  position: relative;
  background: linear-gradient(180deg, var(--panel), var(--bg2));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.acard.k-cheapest {
  border-top: 3px solid var(--neon);
}
.acard.k-safest {
  border-top: 3px solid var(--auth);
}
.acard.k-official {
  border-top: 3px solid var(--official);
}
.acard.merged {
  border-top: 3px solid;
  border-image: var(--grad) 1;
}
.acard.missing,
.acard.reference {
  justify-content: flex-start;
}
.acard.reference {
  opacity: 0.85;
}
.acard.reference p,
.acard.missing p {
  margin: 0;
  color: var(--muted);
}
.acard-kind {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.k-cheapest .acard-kind {
  color: var(--neon);
}
.k-safest .acard-kind {
  color: var(--auth);
}
.k-official .acard-kind {
  color: var(--official);
}
.acard-kind small {
  color: var(--muted);
  letter-spacing: 0;
  text-transform: none;
  font-weight: 600;
}
.price {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1;
}
.price small {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0;
  margin-left: 6px;
}
.save {
  font-size: 12px;
  color: var(--neon);
  font-weight: 700;
}
.gap {
  font-size: 12px;
  color: var(--auth);
  font-weight: 700;
}
.seller-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-weight: 700;
  font-size: 16px;
}
.badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.badge {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid;
  letter-spacing: 0.3px;
  white-space: nowrap;
  display: inline-block;
}
.b-official {
  color: var(--official);
  border-color: rgba(34, 211, 238, 0.4);
  background: rgba(34, 211, 238, 0.08);
}
.b-authorized {
  color: var(--auth);
  border-color: rgba(167, 139, 250, 0.4);
  background: rgba(167, 139, 250, 0.08);
}
.b-grey {
  color: var(--grey);
  border-color: rgba(195, 202, 217, 0.4);
  background: rgba(195, 202, 217, 0.08);
}
.b-neutral {
  color: #c9cdea;
  border-color: var(--line);
  background: var(--bg);
}
.b-over {
  color: var(--danger);
  border-color: rgba(251, 113, 133, 0.4);
}
.b-warn {
  color: var(--warn);
  border-color: rgba(253, 164, 175, 0.45);
  border-style: dashed;
}
.b-coupon {
  color: var(--neon);
  border-color: rgba(182, 255, 59, 0.4);
  border-style: dashed;
}
/* Pre-order (never in stock) and the Windows plus Xbox key label (catalog scale PR 1). */
.b-preorder {
  color: #fcd34d;
  border-color: rgba(252, 211, 77, 0.5);
  background: rgba(252, 211, 77, 0.08);
  white-space: normal;
}
.b-platform {
  color: var(--official);
  border-color: rgba(34, 211, 238, 0.4);
  border-style: dashed;
  white-space: normal;
}
.platform-note {
  margin: 6px 0 0;
  color: var(--text2);
}
.risk {
  font-size: 13px;
  color: #b9bedb;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 11px;
  flex: 1;
}
.meta-line {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
}
.card-actions .btn-primary {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
}
.fineprint {
  color: var(--muted);
  font-size: 12px;
  margin: 14px 0 0;
}
.disclosure-line {
  color: var(--muted);
  font-size: 13px;
  margin: 16px 0 0;
}

/* SEO game page: answer capsule and official vs keyshop split (Growth Priority 1). */
.answer-capsule {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  margin: 8px 0 14px;
}
.answer-capsule p {
  margin: 0 0 8px;
  line-height: 1.55;
  font-size: 15px;
}
.answer-capsule .fineprint {
  margin: 0;
}
.edition-line {
  margin: -6px 0 8px;
}
.store-class-split {
  margin: 18px 0 8px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg2);
}
.store-class-split h2 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 800;
}
.store-class-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 12px 0;
}
.store-class-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
}
.store-class-card h3 {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.store-class-card .price {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
}
.store-class-note {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}
@media (max-width: 640px) {
  .store-class-grid {
    grid-template-columns: 1fr;
  }
  .results-title {
    font-size: 20px;
  }
}

.offers-sec {
  margin-top: 28px;
}
.offers-sec h2 {
  font-size: 20px;
  margin: 0 0 10px;
}
.otable {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.otable th {
  text-align: left;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
}
.otable td {
  padding: 10px;
  border-bottom: 1px solid rgba(38, 43, 64, 0.6);
  vertical-align: middle;
}
.otable td.num,
.otable th.num {
  text-align: right;
  white-space: nowrap;
}
.otable .total {
  font-weight: 800;
  font-size: 16px;
}
.otable tr.over .total {
  color: var(--muted);
}
.more summary {
  cursor: pointer;
  color: var(--neon);
  font-weight: 700;
  padding: 12px 10px;
  list-style: none;
}
.more summary::-webkit-details-marker {
  display: none;
}

.clarify {
  max-width: 760px;
  margin: 40px auto;
  text-align: center;
}
.clarify h1 {
  font-size: 34px;
  letter-spacing: -1px;
}
.site-footer {
  border-top: 1px solid var(--line);
  padding: 20px 0 32px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 980px) {
  .answers {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 760px) {
  .container {
    padding: 0 16px;
  }
  .answers,
  .answers[data-answers="2"] {
    grid-template-columns: 1fr;
  }
  .header-search {
    display: none;
  }
  .hero {
    padding: 40px 0 32px;
  }
  .prompt input {
    font-size: 16px;
  }
  .otable .hide-m {
    display: none;
  }
  /* The phone table must fit its column: header words and badges wrap, and cells are tighter (M3 PR #8 Q1). */
  .otable th,
  .otable td {
    padding-left: 6px;
    padding-right: 6px;
  }
  .otable th.num,
  .otable .badge {
    white-space: normal;
  }
  .seg {
    max-width: 100%;
  }
  .seg a {
    white-space: normal;
    text-align: center;
  }
  .otable tr.m-extra {
    display: none;
  }
  .offers-sec:has(details[open]) tr.m-extra {
    display: table-row;
  }
  .price {
    font-size: 32px;
  }
}
@media (min-width: 761px) {
  .more.m-only {
    display: none;
  }
}
@media (max-width: 760px) {
  .chip.on {
    border-color: var(--line);
    color: var(--text);
  }
  .chip .tag {
    display: none;
  }
}

/* M2: We understood chips (ux-flow S3) */
.understood {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 22px 0 6px;
  font-size: 14px;
}
.asked-q {
  color: var(--text);
  font-weight: 600;
  margin-right: 4px;
}
.understood > .muted,
.asked-q,
.uchip-wrap {
  flex: none;
  white-space: nowrap;
}
.uchip-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.uchip summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 13px;
  white-space: nowrap;
}
.uchip summary::-webkit-details-marker {
  display: none;
}
.uchip summary:hover,
.uchip[open] summary {
  border-color: var(--neon);
}
.uchip summary b {
  color: var(--muted);
  font-weight: 600;
}
.uchip .tag {
  color: var(--muted);
  font-size: 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 5px;
}
.uchip-pop {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  left: 0;
  min-width: 200px;
  background: var(--panel);
  border: 1px solid var(--line2);
  border-radius: 12px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}
.uchip-pop a {
  color: var(--text);
  padding: 6px 10px;
  border-radius: 8px;
}
.uchip-pop a:hover,
.uchip-pop a[aria-current="true"] {
  background: var(--panel2);
  color: var(--neon);
  text-decoration: none;
}
.uchip-form {
  display: flex;
  gap: 6px;
}
.uchip-form input:not([type="hidden"]) {
  width: 140px;
  background: var(--bg2);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 8px;
  font: inherit;
}
.uchip-x {
  color: var(--muted);
  margin-left: 2px;
  padding: 0 6px;
  font-size: 16px;
}
.uchip-x:hover {
  color: var(--danger);
  text-decoration: none;
}
.notice.updated {
  border-color: rgba(182, 255, 59, 0.4);
}

/* Card actions with Details (D9) */
.card-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.card-actions .btn-primary,
.card-actions .btn-secondary {
  flex: 1;
}
.card-actions .btn-ghost {
  padding: 12px 14px;
}
.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--neon);
  border-radius: 12px;
  font-weight: 700;
  padding: 12px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-secondary:hover {
  background: rgba(182, 255, 59, 0.08);
  text-decoration: none;
  color: var(--text);
}
/* A table cell, not a flex box: display flex on a td takes it out of the row, so its border and height drift. */
.row-actions > * {
  vertical-align: middle;
}
.row-actions > * + * {
  margin-left: 10px;
}
.link-details {
  font-size: 13px;
  font-weight: 600;
}
.otable tr[data-panel-row] {
  cursor: pointer;
}
.otable tr[data-panel-row]:hover td {
  background: rgba(26, 30, 46, 0.6);
}

/* Sponsored unit (spec 2.3 item 4, 6.5) */
.sponsored {
  margin-top: 16px;
  background:
    repeating-linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0 12px, rgba(139, 92, 246, 0.04) 12px 24px),
    var(--bg2);
  border: 1px dashed var(--violet);
  border-radius: 16px;
  padding: 14px 18px;
}
.sponsored-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.sponsored-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #0a0d02;
  background: var(--auth);
  border-radius: 6px;
  padding: 2px 8px;
}
.sponsored-body {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: end;
  margin-top: 8px;
}
.sponsored .price {
  font-size: 28px;
}
.why {
  position: relative;
  font-size: 13px;
}
.why summary {
  cursor: pointer;
  color: var(--auth);
  list-style: none;
  font-weight: 600;
}
.why summary::-webkit-details-marker {
  display: none;
}
.why-pop {
  position: absolute;
  right: 0;
  z-index: 20;
  width: min(360px, 80vw);
  background: var(--panel);
  border: 1px solid var(--line2);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}
.why-pop p {
  margin: 0 0 8px;
}

/* Refine: inline on desktop, sticky bottom bar on mobile (D17) */
.refine {
  display: flex;
  gap: 8px;
  margin: 18px 0 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 6px 6px 6px 14px;
}
.refine:focus-within {
  border-color: var(--neon);
}
.refine input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  color: var(--text);
  font: inherit;
}

/* Offer side panel (D9): side panel on desktop, bottom sheet on mobile */
.panel-wrap {
  position: fixed;
  inset: 0;
  z-index: 50;
}
.panel-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 4, 8, 0.6);
}
.panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(440px, 100vw);
  overflow-y: auto;
  background: var(--bg2);
  border-left: 1px solid var(--line2);
  padding: 20px 22px 28px;
  outline: none;
}
body.panel-open {
  overflow: hidden;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.panel-head h2 {
  margin: 0 0 6px;
  font-size: 22px;
}
.panel-close {
  color: var(--text);
  font-size: 26px;
  line-height: 1;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.panel-close:hover {
  text-decoration: none;
  border-color: var(--line2);
}
.panel-total {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -1px;
  margin: 8px 0;
}
.panel-total small {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  margin-left: 6px;
  letter-spacing: 0;
}
.panel-sec {
  border-top: 1px solid var(--line);
  padding: 14px 0 4px;
  margin-top: 12px;
}
.panel-sec:first-of-type {
  border-top: 0;
  margin-top: 4px;
}
.panel-sec h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin: 0 0 6px;
}
.panel-sec p {
  margin: 0 0 8px;
}
.fees {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0 6px;
  font-size: 14px;
}
.fees th {
  text-align: left;
  font-weight: 500;
  color: var(--muted);
  padding: 4px 0;
}
.fees td {
  text-align: right;
  padding: 4px 0;
}
.fees-total th,
.fees-total td {
  color: var(--text);
  font-weight: 800;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}
.seg a.disabled {
  opacity: 0.4;
  pointer-events: none;
}
.panel-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 18px;
}
.panel-actions button[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Price alert form and pages (spec 2.8, T-090) */
.alert-box {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel2);
}
.alert-box h3 {
  margin: 0 0 6px;
  font-size: 15px;
}
.alert-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.alert-form p {
  margin: 0;
}
.alert-form[hidden] {
  display: none;
}
.alert-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: var(--muted);
}
.alert-field input {
  font: inherit;
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line2);
  border-radius: 10px;
  padding: 9px 11px;
}
.alert-field input:focus {
  outline: 2px solid var(--neon);
  outline-offset: 1px;
}
.alert-form .hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.alert-error {
  color: var(--danger);
}
.alert-sent p {
  margin: 0;
}
.alert-sent:focus {
  outline: none;
}
.alert-page {
  padding-top: 40px;
  padding-bottom: 64px;
  max-width: 760px;
}
.alert-page h1 {
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -1px;
}
.alert-page .sub {
  margin: 0 0 24px;
}
.alert-list {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.alert-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}
.alert-list li.on {
  border-color: var(--neon);
}

/* Toast (ux-flow S9) */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 60;
  background: var(--panel2);
  border: 1px solid var(--neon);
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 600;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  max-width: min(560px, 92vw);
}
.toast[hidden] {
  display: none;
}

/* Clarify step (D11, D12) */
.clarify-note {
  color: var(--text);
}
.crow {
  border: 0;
  margin: 18px 0 0;
  padding: 0;
}
.crow legend,
.crow h2 {
  font-size: 18px;
  font-weight: 800;
  margin: 0 auto 4px;
  padding: 0;
}
.chip.radio {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.chip.radio input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.chip.radio:has(input:checked) {
  border-color: var(--neon);
  color: var(--neon);
}
.chip.radio:has(input:focus-visible) {
  outline: 3px solid var(--cyan);
  outline-offset: 2px;
}
.chip.radio.disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.clarify-form .btn-primary {
  margin-top: 22px;
}
.more-chips summary {
  cursor: pointer;
  color: var(--neon);
  margin-top: 10px;
  font-weight: 600;
}
.facts {
  text-align: left;
  display: inline-block;
  max-width: 620px;
}
.facts li {
  margin-bottom: 8px;
}

/* Price-changed page (D18) */
.changed-page {
  max-width: 760px;
  margin: 32px auto;
}
.alts {
  list-style: none;
  padding: 0;
  margin: 18px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.alts li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 16px;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 16px;
}
.alts .total {
  font-weight: 800;
  font-size: 18px;
}

/* AEO guides */
.guide-page .answer-capsule {
  background: var(--surface, #161a22);
  border: 1px solid var(--line2, #2a3140);
  border-radius: 14px;
  padding: 16px 18px;
  margin: 16px 0 20px;
}
.guide-page .answer-capsule p:last-child {
  margin-bottom: 0;
}
.guide-crumbs {
  font-size: 13px;
  color: var(--muted, #9aa3b5);
  margin: 8px 0 12px;
}
.guide-crumbs a {
  color: inherit;
}
.guide-disclosure {
  font-size: 14px;
  color: var(--muted, #9aa3b5);
  margin: 0 0 20px;
}
.guide-faq-item {
  margin: 14px 0 18px;
}
.guide-faq-item h3 {
  font-size: 17px;
  margin: 0 0 6px;
}

/* Versus pages */
.versus-page .answer-capsule {
  background: var(--surface, #161a22);
  border: 1px solid var(--line2, #2a3140);
  border-radius: 14px;
  padding: 16px 18px;
  margin: 16px 0 20px;
}
.versus-page .answer-capsule p:last-child {
  margin-bottom: 0;
}
.versus-crumbs {
  font-size: 13px;
  color: var(--muted, #9aa3b5);
  margin: 8px 0 12px;
}
.versus-crumbs a {
  color: inherit;
}
.versus-disclosure {
  font-size: 14px;
  color: var(--muted, #9aa3b5);
  margin: 0 0 20px;
}
.versus-table-wrap {
  overflow-x: auto;
  margin: 12px 0 24px;
}
.versus-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.versus-table th,
.versus-table td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border: 1px solid var(--line, #2a3140);
}
.versus-table thead th {
  background: var(--panel2, #1c2230);
}
.versus-faq-item {
  margin: 14px 0 18px;
}
.versus-faq-item h3 {
  font-size: 17px;
  margin: 0 0 6px;
}

/* How we rank */
.prose {
  max-width: 760px;
  margin: 32px auto;
}
.prose h2 {
  margin-top: 28px;
}

@media (max-width: 760px) {
  .understood {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
  }
  .asked-q {
    max-width: 40vw;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .uchip-pop {
    position: fixed;
    left: 12px;
    right: 12px;
    top: auto;
    bottom: 84px;
  }
  body.has-refine main {
    padding-bottom: 96px;
  }
  .refine {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 40;
    margin: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  }
  .refine input {
    font-size: 16px;
  }
  .panel {
    top: auto;
    left: 0;
    width: 100vw;
    max-height: 88vh;
    border-left: 0;
    border-top: 1px solid var(--line2);
    border-radius: 18px 18px 0 0;
  }
  .panel::before {
    content: "";
    display: block;
    width: 44px;
    height: 4px;
    border-radius: 4px;
    background: var(--line2);
    margin: -8px auto 12px;
  }
  .sponsored-body {
    grid-template-columns: 1fr;
  }
  .why-pop {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 84px;
    width: auto;
  }
  .alts li {
    grid-template-columns: 1fr auto;
  }
  .alts li .btn-primary {
    grid-column: 1 / -1;
  }
  .row-actions .link-details {
    display: none;
  }
  .toast {
    bottom: 84px;
  }
}

/* Did you get it? card (D15, US-21) */
.return-ask {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  padding: 12px 14px 12px 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--cyan);
  border-radius: 14px;
  font-size: 14px;
  text-align: left;
}
.return-ask[hidden],
.return-ask .ra-body[hidden] {
  display: none;
}
.return-ask .ra-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.return-ask .ra-body:focus {
  outline: none;
}
.return-ask p {
  margin: 0;
}
.ra-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.ra-actions .btn-ghost.sm {
  padding: 6px 10px;
  font-size: 13px;
}
.ra-actions button[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}
.ra-x {
  align-self: flex-start;
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  padding: 2px 6px;
  cursor: pointer;
}
.ra-x:hover {
  color: var(--text);
}
.hero .return-ask {
  max-width: 820px;
  margin: 0 auto 22px;
}

/* Return prompt links that stay hidden until return-prompt.js fills them (US-21) */
.ra-actions [hidden] {
  display: none;
}

/* "Report this seller" form (US-21, M3 #3 Q4); reuses the alert form fields */
.report-form {
}
.report-reasons {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.report-reasons legend {
  padding: 0 6px;
  font-weight: 600;
}
.report-reasons label {
  display: flex;
  gap: 8px;
  align-items: center;
}
.report-form textarea {
  font: inherit;
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line2);
  border-radius: 10px;
  padding: 9px 11px;
  resize: vertical;
}
.report-form textarea:focus {
  outline: 2px solid var(--neon);
  outline-offset: 1px;
}
.report-form .btn-primary {
  align-self: flex-start;
}

/* Read-only admin queue (preview until operator sign-in, T-016) */
.admin-page {
  padding-top: 32px;
  padding-bottom: 64px;
}
.admin-note {
  border: 1px solid var(--line2);
  border-radius: 10px;
  padding: 8px 12px;
  background: var(--panel2);
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 28px;
  font-size: 14px;
}
.admin-table th,
.admin-table td {
  text-align: left;
  vertical-align: top;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
}
.admin-table .n {
  text-align: right;
}
.admin-table .details {
  max-width: 420px;
  overflow-wrap: anywhere;
}
.admin-table .ids {
  font-family: ui-monospace, monospace;
  font-size: 12px;
}

/* Home, holding page style (apps/holding/public/assets/styles.css, ported onto the tokens above).
   AA contrast: small grey text uses --muted (the holding page's #6f7596 and #5d6384 are under 4.5:1 here), and the
   Sponsored badge uses the app's Sponsored label colours (dark on violet) instead of white on pink. */
.home-hero {
  position: relative;
  padding: 64px 0 40px;
}
.home-hero > .container {
  position: relative;
}
.hero-glow {
  position: absolute;
  inset: 0 15% auto;
  height: 320px;
  background: radial-gradient(closest-side, rgba(182, 255, 59, 0.12), transparent);
  filter: blur(20px);
  pointer-events: none;
}
.eyebrow.plain {
  border: 0;
  padding: 0;
}
.home-prompt {
  position: relative;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 0 4px rgba(182, 255, 59, 0);
}
.home-prompt:focus-within {
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 0 4px rgba(182, 255, 59, 0.12),
    0 0 40px rgba(182, 255, 59, 0.15);
}
.prompt-icon {
  color: var(--neon);
  font-size: 20px;
  line-height: 1;
}
.home-prompt input::placeholder {
  color: var(--muted);
}
.home-prompt .btn-primary {
  gap: 10px;
}
.kbd {
  font-size: 11px;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.15);
  padding: 2px 6px;
  border-radius: 5px;
}
.home-chips {
  max-width: 860px;
}
.home-chips .chip {
  background: var(--bg2);
  color: var(--text2);
  padding: 8px 14px;
  font-weight: 500;
}
.home-chips .chip:hover {
  color: var(--text);
}
.hero-row {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
}
/* Seller type: a real radio group styled as the holding page's segmented control. */
.seg-toggle {
  display: inline-flex;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px;
  margin: 0;
  min-width: 0;
  max-width: 100%;
}
.seg-toggle label {
  position: relative;
  color: var(--muted);
  padding: 9px 14px;
  border-radius: 9px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  text-align: center;
}
.seg-toggle input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.seg-toggle label:hover {
  color: var(--text);
}
.seg-toggle label:has(input:checked) {
  background: var(--panel2);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line2);
}
.seg-toggle label[data-mode="grey_only"]:has(input:checked) {
  color: var(--grey);
}
.seg-toggle label[data-mode="official_only"]:has(input:checked) {
  color: var(--official);
}
.seg-toggle label:has(input:focus-visible) {
  outline: 3px solid var(--cyan);
  outline-offset: 2px;
}
.link-muted {
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0;
}
.link-muted:hover {
  color: var(--text);
}
.trust-strip {
  display: flex;
  justify-content: center;
  gap: 34px;
  margin-top: 40px;
  color: var(--muted);
  font-size: 14px;
  flex-wrap: wrap;
}
.trust-strip b {
  color: var(--text);
}

.home-sec {
  padding: 64px 0;
}
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 28px;
}
.home-sec h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.1;
  margin: 0 0 12px;
}
.section-head p {
  color: var(--muted);
  margin: 0;
  font-size: 16px;
}
.preview {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
}
.preview-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.summary-line {
  font-size: 15px;
  margin-bottom: 10px;
}
.summary-label {
  color: var(--neon);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 1.5px;
  margin-right: 8px;
}
.summary-line q {
  color: var(--text2);
}
.parsed {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pchip i {
  font-style: normal;
  color: var(--muted);
}
.preview .results-title {
  margin: 0 0 14px;
  font-size: 24px;
}
.preview .acard {
  padding: 20px;
  gap: 12px;
}
.rating {
  font-size: 13px;
  color: var(--muted);
}
.rating b {
  color: var(--text);
}
.risk b {
  color: var(--text);
}
.btn-disabled {
  background: var(--panel2);
  color: var(--muted);
  border: 1px dashed var(--line2);
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 18px;
  display: flex;
  justify-content: center;
}
.b-spons {
  color: var(--on-neon);
  border-color: var(--auth);
  background: var(--auth);
}
.trust-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
  align-items: start;
}
.home-sec .trust-line {
  font-size: clamp(24px, 3vw, 34px);
}
.ticks {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 12px;
}
.ticks li {
  display: flex;
  gap: 12px;
  color: var(--muted);
}
.ticks li strong {
  color: var(--text);
}
.ticks svg {
  flex: none;
  margin-top: 3px;
  color: var(--neon);
}
.labels {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
}
.labels h3 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 800;
}
.labels > p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
}
.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.label-row span:last-child {
  color: var(--muted);
  font-size: 14px;
  text-align: right;
}
.about-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}
.about-strip p {
  color: var(--muted);
}

/* Header navigation on the home page and the site footer, holding page style. */
.topnav {
  display: flex;
  gap: 22px;
  align-items: center;
  font-size: 14px;
  color: var(--muted);
}
.topnav a {
  color: var(--muted);
}
.topnav a:hover {
  color: var(--text);
  text-decoration: none;
}
.topnav .btn-ghost {
  color: var(--text);
}
.btn-ghost.sm {
  padding: 9px 14px;
}
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 28px;
}
.site-footer {
  padding: 40px 0 48px;
  font-size: 14px;
}
.footer-grid .logo {
  font-size: 19px;
}
.footer-grid .logo img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: flex-end;
}
.footer-links a {
  color: var(--muted);
}
.site-footer .disclosure {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(38, 43, 64, 0.6);
}
.site-footer .disclosure p {
  margin: 0 0 6px;
}

@media (max-width: 980px) {
  .trust-grid,
  .about-strip {
    grid-template-columns: 1fr;
  }
  .preview .answers {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .site-footer .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-links {
    justify-content: flex-start;
  }
}
@media (max-width: 640px) {
  .home-hero {
    padding: 36px 0 28px;
  }
  .home-hero h1 {
    letter-spacing: -1.2px;
  }
  .home-hero .sub {
    font-size: 16px;
  }
  /* Stacked card: the input on the first row, a full-width Find deals button below. */
  .home-prompt {
    flex-wrap: wrap;
    padding: 10px 10px 10px 16px;
  }
  .home-prompt input {
    flex: 1 1 0;
    font-size: 17px;
  }
  .home-prompt .btn-primary {
    flex: 1 0 100%;
  }
  .seg-toggle label {
    padding: 8px 9px;
    font-size: 13px;
  }
  .trust-strip {
    gap: 10px 22px;
    margin-top: 28px;
  }
  .home-sec {
    padding: 48px 0;
  }
  .preview {
    padding: 14px;
  }
  .label-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .label-row span:last-child {
    text-align: left;
  }
}
@media (max-width: 380px) {
  .seg-toggle label {
    padding: 8px 6px;
    font-size: 12.5px;
  }
}
/* The "How it works" link scrolls smoothly only when motion is welcome. The gradient text is static (no animation). */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* Site pages carried over from the holding site (/about, /contact, /disclosure, /privacy). */
.site-page {
  padding: 56px 0 72px;
}
.site-page .container {
  max-width: 780px;
}
.site-page h1 {
  font-size: clamp(32px, 4.4vw, 48px);
  letter-spacing: -1.5px;
  margin: 0 0 18px;
}
.site-page h2 {
  font-size: 22px;
  letter-spacing: -0.5px;
  margin: 32px 0 8px;
}
.site-page h3 {
  font-size: 17px;
  margin: 22px 0 6px;
}
.site-page p,
.site-page li {
  color: #c9cdea;
}
.site-page .lead {
  font-size: 18px;
  color: var(--muted);
}
.site-page .btn-primary {
  margin-top: 8px;
}
.site-page .note {
  border: 1px dashed #3b4262;
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
  font-size: 14px;
}
.contact-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px;
  margin: 18px 0;
}
.contact-card p {
  margin: 4px 0;
}
.contact-card .email {
  font-size: 20px;
  font-weight: 800;
}
.footer-nav {
  display: grid;
  gap: 10px;
}

/* Launch guides: spec and edition tables. */
.guide-page .guide-table-wrap {
  overflow-x: auto;
  margin: 0 0 1rem;
}
.guide-page .guide-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.95em;
}
.guide-page .guide-table th,
.guide-page .guide-table td {
  border: 1px solid var(--border, #d0d4dc);
  padding: 0.4rem 0.6rem;
  text-align: left;
  vertical-align: top;
}

/* Hidden creator and contest drafts (ui/creators.tsx). */
.creator-page section {
  margin: 28px 0;
}
.creator-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.creator-banner {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--panel);
}
.creator-steps li {
  margin: 6px 0;
}
.creator-fit,
.creator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.creator-form {
}
.creator-fieldset {
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 10px 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.creator-check {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 14px;
}
.creator-license {
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 10px 12px;
}
.creator-closing {
  margin-top: 18px;
  text-align: center;
}
.creator-day {
  font-size: 28px;
  font-weight: 700;
}
[data-placeholder] {
  background: var(--panel2);
  border: 1px dashed var(--muted);
  border-radius: 4px;
  padding: 0 4px;
}

/* Game page facts card: key fact tiles, platform and edition chips, a two column spec grid. */
.facts-card {
  margin: 22px 0 8px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--bg2);
}
.facts-card h2,
.game-related h2 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 800;
}
.fact-subhead {
  margin: 16px 0 8px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text2);
}
.fact-tiles,
.fact-chips,
.related-tiles,
.related-guides {
  list-style: none;
  margin: 0;
  padding: 0;
}
.fact-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 10px;
}
.fact-tile {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.fact-label,
.spec-item dt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text2);
}
.fact-icon {
  flex: none;
  color: var(--cyan);
}
.fact-value {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
}
.fact-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.fact-chip {
  background: var(--panel);
  border: 1px solid var(--line2);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 13px;
  color: var(--text);
}
.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0;
}
.spec-item {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  min-width: 0;
}
.spec-item dd {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--text);
  overflow-wrap: anywhere;
}
.fact-source {
  margin: 12px 0 0;
}
.fact-source a {
  color: var(--text2);
  text-decoration: underline;
}
.game-related {
  margin: 22px 0 8px;
}
.related-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}
.related-tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  padding: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  min-width: 0;
}
.related-title {
  min-width: 0;
  padding: 0 4px 2px;
  overflow-wrap: anywhere;
}
.related-tile:hover,
.related-tile:focus-visible {
  border-color: var(--neon);
  text-decoration: none;
  color: var(--text);
}
.related-cover {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 460 / 215;
}
.related-cover img,
.related-cover .signal-tile {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
}
.related-cover .signal-tile {
  padding: 6px 8px;
}
.related-cover .signal-tile-mark {
  font-size: 10px;
  padding: 1px 6px;
}
.related-cover .signal-tile-title {
  font-size: 13px;
}
.related-cover img[hidden] {
  display: none;
}
.related-guides li {
  margin: 6px 0;
}
@media (max-width: 640px) {
  .fact-tiles,
  .spec-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .related-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Guides hub (/guides): featured card, weekly strip, filter chips and card groups. Tokens only. */
.guide-hub {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 24px 20px 48px;
}
.guide-hub-head h1 {
  font-size: clamp(30px, 4vw, 42px);
  margin: 8px 0 6px;
}
.guide-hub-lede {
  color: var(--text2);
  font-size: 17px;
  max-width: 720px;
  margin: 0 0 6px;
}
.guide-hub h2 {
  font-size: 22px;
  margin: 0 0 4px;
}
.guide-featured {
  margin: 22px 0;
}
.guide-card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  position: relative;
  transition: border-color 0.15s ease;
}
.guide-card:hover,
.guide-card:focus-within {
  border-color: var(--line2);
}
.guide-card-art {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: var(--bg2);
  border-bottom: 1px solid var(--line);
}
.guide-card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.guide-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}
.guide-pill {
  border: 1px solid var(--line2);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 12px;
  color: var(--text2);
}
.guide-pill-type {
  color: var(--muted);
}
.guide-card-title {
  font-size: 17px;
  line-height: 1.3;
  margin: 2px 0 0;
}
.guide-card-title a {
  color: var(--text);
}
.guide-card-summary {
  color: var(--text2);
  margin: 0;
  font-size: 14px;
}
.guide-card-foot,
.guide-card-games {
  margin: auto 0 0;
}
.guide-card-featured .guide-card-art {
  aspect-ratio: 8 / 3;
}
.guide-card-featured .guide-card-title {
  font-size: 24px;
}
.guide-card-featured .guide-card-summary {
  font-size: 16px;
}
.guide-week {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--bg2);
  padding: 14px 16px;
  margin: 0 0 18px;
}
.guide-week-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.guide-week-head h2 {
  font-size: 18px;
}
.guide-week-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: flex;
  gap: 8px 18px;
  flex-wrap: wrap;
}
.guide-chips {
  list-style: none;
  padding: 0;
  justify-content: flex-start;
  max-width: none;
  margin: 8px 0 18px;
}
.guide-chips .chip {
  display: inline-block;
}
.guide-group {
  margin: 0 0 28px;
  scroll-margin-top: 130px;
}
#guides-list {
  scroll-margin-top: 130px;
}
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 14px;
  margin-top: 12px;
}
@media (max-width: 720px) {
  .guide-card-featured .guide-card-title {
    font-size: 20px;
  }
  .guide-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .guide-chips .chip {
    white-space: nowrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  .guide-card {
    transition: none;
  }
}
/* Guides hub: the filter chips stay in reach while scrolling the grid (desktop only; mobile keeps normal flow). */
@media (min-width: 721px) {
  .guide-filters {
    position: sticky;
    /* Sits under the sticky site header (65px tall at desktop widths). */
    top: 65px;
    z-index: 5;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    margin: 0 -20px 14px;
    padding: 8px 20px;
  }
  .guide-filters .guide-chips {
    margin: 0;
  }
}
/* GTA 6 PC Key Scam Watch (/gta6-pc-key): the follow-up email field shows once the consent box is ticked. */
.scam-watch select,
.scam-watch textarea {
  font: inherit;
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line2);
  border-radius: 10px;
  padding: 9px 11px;
}
.scam-watch select:focus,
.scam-watch textarea:focus,
.scam-watch input[type="checkbox"]:focus {
  outline: 2px solid var(--neon);
  outline-offset: 1px;
}
.scam-followup {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.scam-followup:not(.open):not(:has(.scam-consent input:checked)) .scam-email {
  display: none;
}
.scam-consent {
  font-size: 14px;
  color: #c9cdea;
}
/* Scam Watch page palette (sunset inspired; text only, no game marks or fonts). Scoped to .scam-watch.
   Contrast (WCAG 2.x): hero text #fff on #b3125e 6.64, on #a8420a 6.09, on #5b21b6 8.98; CTA #1a0612 on #ff4fa3 6.4,
   on #ff8a3d 8.3; h2 #ff7ab8 on --bg 8.32, on --panel 7.48; links and focus #ffa35c on --bg 10.14. */
.scam-watch .scam-hero {
  background: linear-gradient(120deg, #b3125e 0%, #a8420a 52%, #5b21b6 100%);
  color: #fff;
  border-radius: 18px;
  padding: 28px 22px;
  margin: 8px 0 24px;
}
.scam-watch .scam-hero h1,
.scam-watch .scam-hero .lead {
  color: #fff;
  margin: 0 0 8px;
}
.scam-watch .scam-hero .eyebrow {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}
.scam-watch h2 {
  color: #ff7ab8;
}
.scam-watch a {
  color: #ffa35c;
}
.scam-watch .btn-primary {
  background: linear-gradient(90deg, #ff4fa3, #ff8a3d);
  color: #1a0612;
}
.scam-watch .btn-primary:focus-visible,
.scam-watch select:focus,
.scam-watch textarea:focus,
.scam-watch input:focus {
  outline: 2px solid #ffa35c;
  outline-offset: 2px;
}
.scam-watch .scam-counter {
  border-color: #7a2a5a;
}
@media (min-width: 720px) {
  .scam-watch .scam-hero {
    padding: 40px 36px;
  }
  .scam-watch #report,
  .scam-watch #alert {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }
  .scam-watch .alert-form .btn-primary {
    align-self: flex-start;
    min-width: 200px;
    justify-content: center;
  }
}

/* Site header and nav (ui/site-nav.tsx, option A: search first). Fixed 64px bar on every width, so opening the
   menu or the search sheet never shifts the page: both are absolutely placed under the bar. */
.site-header .topbar {
  position: relative;
  min-width: 0;
}
.site-header .logo {
  flex: none;
}
.site-header .topnav {
  flex: 1;
  min-width: 0;
}
.nav-list {
  display: flex;
  gap: 22px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a {
  display: inline-block;
  padding: 6px 2px;
  border-radius: 6px;
  white-space: nowrap;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
  cursor: pointer;
  padding: 0;
  flex: none;
}
.icon-btn:hover {
  border-color: var(--line2);
}
.site-header a:focus-visible,
.site-header button:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 2px;
}
/* The search field shows focus on its box (neon border and ring) rather than a second outline inside it. */
.search-sheet .header-search input:focus-visible {
  outline: 0;
}
.search-sheet .header-search:focus-within {
  border-color: var(--neon);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.45);
}
.header-actions .icon-btn {
  display: none;
}
.search-sheet {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}
.search-sheet[hidden] {
  display: none;
}
.sheet-inner {
  display: flex;
  align-items: center;
  gap: 8px;
}
/* Compact on desktop (owner rule: forms, inputs and buttons stay compact); full width only below 760px. */
.search-sheet .header-search {
  display: flex;
  flex: 1 1 auto;
  max-width: 560px;
  min-width: 0;
}
@media (max-width: 760px) {
  .header-actions .header-cta {
    display: none;
  }
  .header-actions .icon-btn {
    display: inline-flex;
  }
  .site-header .topnav {
    flex: 0 0 0;
  }
  .nav-list {
    display: none;
  }
  .site-header[data-menu-open] .nav-list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 8px 16px 12px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  }
  .site-header[data-menu-open] .nav-list a {
    display: block;
    padding: 12px 4px;
    font-size: 16px;
    color: var(--text);
  }
  .site-header .logo {
    font-size: 20px;
  }
  .search-sheet .header-search {
    max-width: none;
  }
}

/* Coming soon (ui/coming-soon.tsx): Signal Grid cards (default) and month strip calendar, home and /upcoming. */
.cs-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  max-width: none;
}
.cs-head h2 {
  margin: 0;
}
.cs-toggle,
.cs-filter {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg2);
}
/* Without JavaScript the toggles keep their space but stay invisible; the cards show. */
html:not(.cs-js) .cs-toggle,
html:not(.cs-js) .cs-filter {
  visibility: hidden;
}
.cs-seg,
.cs-chip {
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  min-height: 32px;
  padding: 6px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text2);
  cursor: pointer;
}
.cs-seg[aria-checked="true"],
.cs-chip[aria-checked="true"] {
  background: var(--neon);
  color: var(--on-neon);
}
.cs-views {
  display: grid;
}
.cs-view {
  grid-area: 1 / 1;
  min-width: 0;
}
/* Both views share one grid cell, so the box keeps the taller height and a switch never moves the page. */
.cs-view-cal {
  visibility: hidden;
}
html[data-cs-view="calendar"] .cs-view-cards {
  visibility: hidden;
}
html[data-cs-view="calendar"] .cs-view-cal {
  visibility: visible;
}
.cs-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.cs-card {
  transition: border-color 0.15s;
  background: #0d0f16;
  border: 1px solid #1f2230;
  border-radius: var(--r);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.cs-card[hidden] {
  display: none;
}
.cs-card:hover {
  border-color: #343849;
}
/* Layers stack in one grid cell, not by position, so .cs-thumb is no containing block for the card link overlay. */
.cs-thumb {
  display: grid;
  aspect-ratio: 16 / 9;
  background: #0a0b11;
  overflow: hidden;
}
.cs-thumb > *,
.cs-thumb::after {
  grid-area: 1 / 1;
  min-width: 0;
}
.cs-thumb-svg {
  width: 100%;
  height: 100%;
}
/* Steam header over the Signal Grid thumb (ui/upcoming-card.tsx); hidden on error so the thumb shows. A shade at the
   bottom keeps the title readable on any art. */
.cs-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Big release on upcoming cards: the same tag as the new releases timeline (.nr-big-mark), plus an accent border. */
.cs-big-mark {
  align-self: start;
  justify-self: end;
  margin: 14px 16px 0 0;
  z-index: 1;
  color: var(--on-neon);
  background: var(--neon);
  border-radius: 6px;
  padding: 1px 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.cs-card.cs-big {
  border-color: var(--neon);
  box-shadow:
    0 0 0 1px rgba(182, 255, 59, 0.35),
    0 0 18px rgba(182, 255, 59, 0.12);
}
.cs-cover[hidden] {
  display: none;
}
.cs-card[data-cs-cover="steam"] .cs-thumb::after {
  content: "";
  background: linear-gradient(
    to top,
    rgba(10, 11, 17, 0.92) 0%,
    rgba(10, 11, 17, 0.35) 45%,
    rgba(10, 11, 17, 0) 70%
  );
  pointer-events: none;
}
.cs-card[data-cs-cover="steam"] .cs-tag,
.cs-card[data-cs-cover="steam"] .cs-tt {
  z-index: 1;
}
.cs-card[data-cs-cover="steam"] .cs-tt {
  margin-right: 16px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}
.cs-tag {
  align-self: start;
  justify-self: start;
  margin: 14px 0 0 16px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--neon);
  color: var(--on-neon);
  border-radius: 5px;
  padding: 3px 7px;
}
.cs-tt {
  align-self: end;
  margin: 0 40% 14px 16px;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.15;
}
.cs-tt a {
  color: #f1f3fa;
}
.cs-cb {
  padding: 14px 16px 16px;
  margin-top: auto;
}
.cs-meta {
  font-size: 13px;
  color: #a9aec4;
  margin: 0 0 12px;
}
.cs-plat {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text2);
  border: 1px solid #343849;
  border-radius: 6px;
  padding: 2px 7px;
  margin-right: 4px;
}
.cs-src {
  font-size: 12px;
  color: var(--muted);
}
.cs-alert {
  display: inline-block;
  width: auto;
  max-width: 480px;
  text-align: center;
  padding: 8px 16px;
  border-radius: 9px;
  border: 1px solid var(--neon);
  color: var(--neon);
  font-weight: 700;
  font-size: 14px;
}
.cs-alert:hover {
  background: var(--neon);
  color: var(--on-neon);
  text-decoration: none;
}
.cs-alert.sm {
  display: inline-block;
  width: auto;
  padding: 6px 12px;
  margin-top: 8px;
  font-size: 13px;
}
.cs-all {
  margin: 22px 0 0;
}
.cs-months {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.cs-mo {
  background: #0d0f16;
  border: 1px solid #1f2230;
  border-radius: 12px;
  padding: 14px;
}
.cs-mo h3 {
  margin: 0 0 10px;
  font-size: 15px;
}
.cs-grid7 {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  font-size: 12px;
  text-align: center;
}
.cs-grid7 span {
  padding: 6px 0;
  border-radius: 6px;
  color: #6f7590;
}
.cs-grid7 .cs-wd {
  color: #4c5168;
  font-size: 10px;
}
.cs-grid7 .cs-today {
  outline: 1px dashed var(--muted);
  color: #fff;
}
.cs-day {
  font: inherit;
  padding: 6px 0;
  border-radius: 6px;
  border: 0;
  background: var(--neon);
  color: var(--on-neon);
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(182, 255, 59, 0.4);
}
.cs-day[aria-pressed="true"] {
  outline: 2px solid #fff;
  outline-offset: 0;
}
.cs-day:focus-visible {
  outline: 3px solid var(--cyan);
}
.cs-day.cs-off {
  background: var(--panel2);
  color: var(--muted);
  box-shadow: none;
}
.cs-detail {
  margin-top: 16px;
  background: #0d0f16;
  border: 1px solid rgba(182, 255, 59, 0.27);
  border-radius: 12px;
  padding: 14px 16px;
  min-height: 96px;
}
.cs-dd {
  color: var(--neon);
  font-weight: 700;
  font-size: 13px;
  margin: 0;
}
.cs-detail h3 {
  margin: 4px 0 6px;
  font-size: 18px;
}
.cs-detail h3 a {
  color: var(--text);
}
.cs-detail-item + .cs-detail-item {
  margin-top: 10px;
}
/* /upcoming */
.cs-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 20px 0 12px;
}
.cs-month-chips {
  position: sticky;
  /* Below the sticky site header. */
  top: var(--cs-header-h, 52px);
  z-index: 5;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 0;
  margin-bottom: 8px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.cs-month-chips .cs-chip {
  border: 1px solid var(--line);
  white-space: nowrap;
  text-decoration: none;
}
.cs-month-chips .cs-chip[aria-current="true"] {
  border-color: var(--neon);
  color: var(--neon);
}
.cs-group {
  scroll-margin-top: 120px;
  margin-bottom: 28px;
}
.cs-group[hidden] {
  display: none;
}
.cs-group-h {
  font-size: 22px;
  margin: 16px 0 14px;
}
/* Month page /upcoming/YYYY-MM (ui/browse.tsx): previous and next month, big releases as wide hero cards. */
.cs-month-nav {
  display: flex;
  gap: 8px;
  max-width: 480px;
  margin: 16px 0 8px;
}
.cs-month-nav .cs-chip {
  flex: 1;
  text-align: center;
  text-decoration: none;
  border: 1px solid var(--line);
  color: var(--text);
}
.cs-month-nav .cs-chip[aria-disabled="true"] {
  color: var(--text2);
  opacity: 0.5;
  cursor: default;
}
.cs-partial {
  color: var(--neon);
  margin: 0 0 8px;
}
.cs-month-page .cs-bar {
  margin: 8px 0 4px;
}
.cs-cards.cs-hero {
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 761px) {
  .cs-hero .cs-card {
    flex-direction: row;
  }
  .cs-hero .cs-thumb {
    flex: 0 0 60%;
  }
  .cs-hero .cs-cb {
    margin: auto 0;
    padding: 24px;
  }
  .cs-hero .cs-meta {
    font-size: 15px;
  }
}
.cs-page .cs-months {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (min-width: 761px) and (max-width: 1000px) {
  .cs-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .cs-cards,
  .cs-months,
  .cs-page .cs-months {
    grid-template-columns: minmax(0, 1fr);
  }
  /* Home: 3 cards on mobile. */
  .cs-sec .cs-card:nth-child(n + 4) {
    display: none;
  }
  .cs-sec .cs-mo:nth-child(n + 2) {
    display: none;
  }
}

/* Compact forms (standing owner rule): on desktop every form group is at most 480px wide and never stretches to its
   container; buttons size to their content. Mobile stays full width. `form-compact-inline` puts one field and the
   button on a single row. Search bars (the hero prompt, header search, refine) are not form groups and keep their
   own layout. */
.form-compact {
  width: 100%;
  max-width: 480px;
}
.form-compact button,
.form-compact .btn,
.form-compact .btn-primary {
  width: auto;
  align-self: flex-start;
}
.form-compact-inline {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  position: relative;
  align-items: flex-end;
  gap: 10px;
}
.form-compact-inline .alert-field {
  flex: 1 1 220px;
  margin: 0;
}
.form-compact-inline button,
.form-compact-inline .btn-primary {
  align-self: flex-end;
  white-space: nowrap;
}
@media (max-width: 760px) {
  .form-compact {
    max-width: none;
  }
  /* "Get an alert" on upcoming cards: compact on desktop, full width on a phone. */
  .cs-cb .cs-alert:not(.sm) {
    display: block;
    width: 100%;
    max-width: none;
  }
  .form-compact button,
  .form-compact .btn,
  .form-compact .btn-primary {
    width: 100%;
  }
  .form-compact-inline {
    flex-direction: column;
    align-items: stretch;
  }
}
/* Game page media (ui/game-media.tsx): cover, price history, trailer facade, screenshots. */
.game-cover {
  position: relative;
  margin: 12px 0 4px;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 460 / 215;
}
.game-cover img,
.game-cover .signal-tile {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--r);
  object-fit: cover;
}
.game-cover img[hidden] {
  display: none;
}
.game-cover .media-credit {
  position: absolute;
  top: 100%;
  left: 0;
}
.game-cover:has(.media-credit) {
  margin-bottom: 26px;
}
.signal-tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px 16px;
  overflow: hidden;
  background-color: var(--bg2);
  background-image:
    linear-gradient(rgba(182, 255, 59, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(182, 255, 59, 0.14) 1px, transparent 1px),
    radial-gradient(circle at 85% 20%, rgba(34, 211, 238, 0.22), transparent 55%);
  background-size:
    24px 24px,
    24px 24px,
    100% 100%;
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.signal-tile-mark {
  align-self: flex-start;
  color: var(--on-neon);
  background: var(--neon);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.signal-tile-title {
  color: var(--text);
  font-size: clamp(18px, 4vw, 28px);
  font-weight: 800;
  line-height: 1.1;
  max-width: 90%;
}
.media-credit {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 11px;
}
.price-history,
.game-shots,
.game-trailer {
  margin: 28px 0;
}
.price-history h2,
.game-shots h2,
.game-trailer h2 {
  font-size: 18px;
  margin: 0 0 6px;
}
.ph-toggle {
  display: inline-flex;
  gap: 4px;
  margin: 6px 0 8px;
}
.ph-toggle label {
  cursor: pointer;
  padding: 6px 12px;
  border: 1px solid var(--line2);
  border-radius: 999px;
  color: var(--text2);
  font-size: 13px;
}
#ph-r30:checked ~ .ph-toggle label[for="ph-r30"],
#ph-r90:checked ~ .ph-toggle label[for="ph-r90"] {
  background: var(--neon);
  border-color: var(--neon);
  color: var(--on-neon);
  font-weight: 700;
}
#ph-r30:focus-visible ~ .ph-toggle label[for="ph-r30"],
#ph-r90:focus-visible ~ .ph-toggle label[for="ph-r90"] {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}
#ph-r30:checked ~ .ph-panels .ph-90,
#ph-r90:checked ~ .ph-panels .ph-30 {
  display: none;
}
.ph-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  list-style: none;
  padding: 0;
  margin: 0 0 6px;
  color: var(--text2);
}
.ph-key {
  display: inline-block;
  width: 22px;
  height: 0;
  margin-right: 6px;
  vertical-align: middle;
  border-top: 3px solid var(--official);
}
.ph-key.ph-grey {
  border-top: 3px dashed var(--grey);
}
.ph-chart {
  width: 100%;
  height: auto;
  max-width: 760px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.ph-grid line {
  stroke: var(--line);
  stroke-width: 1;
}
.ph-grid text,
.ph-axis {
  fill: var(--muted);
  font-size: 11px;
}
.ph-line {
  fill: none;
  stroke-width: 2.5;
  stroke-linejoin: round;
}
.ph-line.ph-official {
  stroke: var(--official);
}
.ph-line.ph-grey {
  stroke: var(--grey);
  stroke-dasharray: 6 4;
}
.ph-dot.ph-official {
  fill: var(--official);
}
.ph-dot.ph-grey {
  fill: var(--grey);
}
.ph-summary {
  color: var(--text2);
  margin: 8px 0;
}
.ph-table {
  border-collapse: collapse;
  font-size: 13px;
  margin-top: 6px;
}
.ph-table th,
.ph-table td {
  text-align: left;
  padding: 4px 12px 4px 0;
  border-bottom: 1px solid var(--line);
}
.shot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}
.shot-grid img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 600 / 338;
  object-fit: cover;
  border-radius: 10px;
  background: var(--panel);
}
.trailer-frame {
  position: relative;
  width: 100%;
  max-width: 760px;
  aspect-ratio: 16 / 9;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--panel);
}
.trailer-frame img,
.trailer-frame .signal-tile,
.trailer-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}
.trailer-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(7, 8, 13, 0.35);
}
.trailer-play-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--neon);
  position: relative;
}
.trailer-play-icon::after {
  content: "";
  position: absolute;
  left: 28px;
  top: 22px;
  border-left: 22px solid var(--on-neon);
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
}
.trailer-play:focus-visible .trailer-play-icon {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

/* Game page hero (ui/results.tsx .game-hero): on desktop the cover sits left of the H1, chips, facts and deal
   summary. Mobile keeps the stacked order. The cover column never exceeds the Steam header's native 460px. */
@media (min-width: 761px) {
  .game-hero[data-game-hero="cover"],
  .game-hero[data-game-hero="fallback"] {
    display: grid;
    grid-template-columns: minmax(280px, 460px) minmax(0, 1fr);
    column-gap: 28px;
    align-items: start;
    margin-top: 14px;
  }
  .game-hero .game-cover {
    margin: 0;
  }
  .game-hero:not([data-game-hero="none"]) .game-hero-main > .results-bar:first-child {
    margin-top: 0;
  }
  .game-hero-main .bar-right {
    max-width: 480px;
  }
  .game-hero-main > :last-child {
    margin-bottom: 0;
  }
}
/* New releases (ui/new-releases.tsx, Growth mocks option D): /new-releases timeline and list, home week strip. */
.nr-cover {
  position: relative;
  aspect-ratio: 460 / 215;
  border-radius: 12px;
  overflow: hidden;
  background: var(--panel);
}
.nr-cover img,
.nr-cover .signal-tile {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.nr-cover img[hidden] {
  display: none;
}
.nr-cover .signal-tile {
  padding: 10px 12px;
}
.nr-cover .signal-tile-title {
  font-size: clamp(14px, 2vw, 22px);
}
.nr-big-mark {
  display: inline-block;
  align-self: flex-start;
  color: var(--on-neon);
  background: var(--neon);
  border-radius: 6px;
  padding: 1px 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.nr-pf {
  display: inline-flex;
  gap: 4px;
}
.nr-pf span {
  font-size: 11px;
  font-weight: 700;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
  color: var(--muted);
}
.nr-src {
  color: var(--muted);
  font-size: 12px;
  text-decoration: underline;
}
.nr-page {
  padding-top: 24px;
}
.nr-page h1 {
  margin-bottom: 10px;
}
.nr-lede {
  max-width: 720px;
  margin: 0 0 16px;
}
.nr-bar {
  position: sticky;
  /* Under the sticky site header (65px). */
  top: 65px;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  margin: 0 0 12px;
  background: rgba(7, 8, 13, 0.94);
  backdrop-filter: blur(8px);
}
.nr-count {
  font-size: 14px;
}
.nr-seg {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  max-width: 480px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.nr-seg a {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 8px 18px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}
.nr-seg a:hover {
  color: var(--text);
  text-decoration: none;
}
.nr-seg a.on {
  background: var(--neon);
  color: var(--on-neon);
}
.nr-week {
  margin-bottom: 28px;
}
.nr-week h2 {
  position: sticky;
  top: 123px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  padding: 8px 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  font-size: 17px;
}
.nr-week h2::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 3px solid var(--cyan);
}
.nr-week.now h2::before {
  border-color: var(--neon);
  box-shadow: 0 0 10px rgba(182, 255, 59, 0.6);
}
.nr-week h2 small {
  margin-left: auto;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}
.nr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  align-items: start;
  gap: 16px;
}
.nr-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: border-color 0.15s;
}
.nr-card:hover,
.nr-row:hover,
.nr-hero:hover,
.nr-wrow:hover {
  border-color: var(--line2);
  text-decoration: none;
}
.nr-t {
  color: var(--text);
  font-weight: 700;
  line-height: 1.25;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.nr-dd {
  display: none;
}
.nr-m {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}
.nr-when {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nr-m .nr-src {
  margin-left: auto;
}
/* Big releases (games.big_release): accent border and glow, and the mark. */
.nr-card.nr-big,
.nr-row.nr-big,
.nr-hero.nr-big,
.nr-wrow.nr-big {
  border-color: var(--neon);
  box-shadow:
    0 0 0 1px rgba(182, 255, 59, 0.35),
    0 0 18px rgba(182, 255, 59, 0.12);
}
@media (min-width: 821px) {
  .nr-grid .nr-card.nr-big {
    grid-column: span 2;
  }
  .nr-card.nr-big .nr-t {
    font-size: 20px;
  }
}
.nr-hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 28px;
  align-items: center;
  padding: 20px;
  margin-bottom: 28px;
  background: linear-gradient(135deg, var(--panel), var(--bg2));
  border: 1px solid var(--line);
  border-radius: 20px;
}
.nr-hero > * {
  min-width: 0;
}
.nr-hero .nr-cover {
  border-radius: 14px;
}
.nr-hero h2 {
  margin: 6px 0 10px;
  font-size: 30px;
  line-height: 1.15;
}
.nr-hero h2 a {
  color: var(--text);
}
.nr-hero .nr-big-mark {
  margin-left: 8px;
}
.nr-eb {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nr-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nr-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 10px 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.nr-row .nr-cover {
  border-radius: 8px;
}
.nr-d {
  color: var(--muted);
  font-size: 13px;
}
/* Home strip */
.nr-home .nr-home-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  max-width: none;
  margin-bottom: 14px;
  text-align: left;
}
.nr-home .nr-home-head h2 {
  margin: 0;
}
.nr-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}
.nr-strip li {
  padding: 6px 2px;
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}
.nr-strip b {
  display: block;
  color: var(--text);
  font-size: 16px;
}
.nr-strip i {
  display: block;
  height: 6px;
  margin-top: 3px;
}
.nr-strip li.has {
  border-color: var(--neon);
}
.nr-strip li.has b {
  color: var(--neon);
}
.nr-strip li.has i::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: var(--neon);
  vertical-align: top;
}
.nr-strip li.big {
  background: rgba(182, 255, 59, 0.12);
  box-shadow: 0 0 12px rgba(182, 255, 59, 0.25);
}
.nr-strip li.big i::before {
  width: 18px;
}
.nr-wrows {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.nr-wrow {
  display: grid;
  grid-template-columns: 52px 120px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 64px;
  padding: 8px 12px 8px 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
}
.nr-wrow .nr-cover {
  border-radius: 6px;
}
.nr-wrow .nr-cover .signal-tile {
  padding: 6px 8px;
}
.nr-wrow .signal-tile-mark {
  font-size: 9px;
  padding: 1px 5px;
}
.nr-wrow .signal-tile-title {
  font-size: 12px;
}
.nr-wrow .nr-t {
  font-size: 15px;
}
.nr-day {
  color: var(--cyan);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
}
.nr-day b {
  display: block;
  color: var(--text);
  font-size: 18px;
}
.nr-s {
  color: var(--muted);
  font-size: 12px;
}
.nr-seeall {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 480px;
  min-height: 40px;
  margin-top: 12px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--cyan);
  font-size: 14px;
  font-weight: 600;
}
.nr-seeall:hover {
  border-color: var(--line2);
  text-decoration: none;
}
@media (max-width: 820px) {
  .nr-page h1 {
    font-size: 26px;
    margin-bottom: 6px;
  }
  .nr-lede {
    font-size: 14px;
    margin-bottom: 12px;
  }
  .nr-bar {
    padding: 8px 0;
    margin-bottom: 8px;
  }
  .nr-seg a {
    min-height: 40px;
    padding: 8px 14px;
  }
  .nr-week {
    margin-bottom: 18px;
  }
  .nr-week h2 {
    top: 125px;
    font-size: 15px;
  }
  .nr-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  .nr-card {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 4px 12px;
    align-items: center;
    padding: 8px;
    border-radius: 12px;
  }
  .nr-card .nr-cover {
    grid-row: span 3;
    border-radius: 8px;
  }
  .nr-card .nr-t {
    font-size: 15px;
  }
  .nr-dd {
    display: block;
    color: var(--cyan);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
  }
  .nr-dd span {
    color: var(--muted);
    font-weight: 500;
    text-transform: none;
  }
  .nr-m .nr-when {
    display: none;
  }
  .nr-m .nr-src {
    margin-left: 0;
  }
  .nr-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 12px;
    margin-bottom: 16px;
  }
  .nr-hero h2 {
    font-size: 24px;
  }
  .nr-row {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 4px 12px;
    padding: 10px 8px;
  }
  .nr-row > .nr-cover {
    grid-row: span 2;
  }
  .nr-row .nr-big-mark {
    justify-self: start;
  }
  .nr-row > span:empty {
    display: none;
  }
  .nr-strip {
    gap: 4px;
  }
  .nr-strip li {
    padding: 5px 0;
    font-size: 11px;
  }
  .nr-strip b {
    font-size: 15px;
  }
  .nr-wrows {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  .nr-wrow {
    grid-template-columns: 44px 96px minmax(0, 1fr);
    gap: 10px;
    padding: 8px;
  }
  .nr-wrow .nr-big-mark {
    grid-column: 3;
  }
  .nr-day b {
    font-size: 16px;
  }
  .nr-seeall {
    display: flex;
    justify-content: center;
    width: 100%;
    min-height: 44px;
  }
}
.nr-row .nr-big-mark,
.nr-wrow .nr-big-mark {
  justify-self: start;
}
.nr-row .signal-tile,
.nr-wrow .signal-tile {
  padding: 6px 8px;
}
.nr-row .signal-tile-title,
.nr-wrow .signal-tile-title {
  font-size: 12px;
}

/* /admin and /admin/metrics (admin/routes.tsx): compact forms and tables on desktop. */
.admin-narrow,
.admin-form,
.admin-compact {
  max-width: 460px;
}
.admin-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
.admin-links {
  padding-left: 18px;
}
.admin-progress {
  position: relative;
  height: 6px;
  margin-top: 6px;
  max-width: 160px;
  background: var(--line);
  border-radius: 3px;
}
.admin-progress span {
  display: block;
  height: 6px;
  border-radius: 3px;
  background: var(--neon);
}
.admin-progress em {
  display: block;
  font-style: normal;
  margin-top: 2px;
}
.admin-two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 460px));
  gap: 24px;
}

/* GTA VI PC status block on /gta6-pc-key: one row per sourced fact. */
.scam-watch .scam-status dl {
  margin: 0;
}
.scam-watch .scam-status dt {
  font-weight: 600;
  margin-top: 0.6rem;
}
.scam-watch .scam-status dd {
  margin: 0.15rem 0 0;
}
