/* ============================================================
   HOMEPAGE REDESIGN — 2026-09-20
   Loaded only by index.html, AFTER css/style.css, and every rule is
   scoped to `body.home-v2` so the other 16 pages keep the style.css look
   (the .hero-*, .legal-*, .foot-*, .sort-*, .search-* and .item-card
   classes below are shared with about/faq/item.html).

   NOT touched here — both were redesigned separately and stay as-is:
     · Vending Shop Spotlight  (#shopAdStrip, js/shop-ads.js + shop-designs.css)
     · List Your Price         (#submitForm, the .sp-* "seller's counter")
   Nothing in this file may style #shopAdStrip or #submitForm.

   Design language follows the .sp-shell panel: layered radial gradients on
   a navy base, 1px blue hairline borders, Space Grotesk headings, WL gold /
   DL light-blue for currency, pixel sprites for warmth.
   ============================================================ */

body.home-v2 {
  /* Panel recipes reused across the redesigned sections */
  --home-panel-border: rgba(96, 165, 250, 0.2);
  --home-panel-bg:
    radial-gradient(620px 280px at 12% -10%, rgba(59, 130, 246, 0.16), transparent 62%),
    linear-gradient(168deg, #182335 0%, #141c2c 58%, #111827 100%);
  --home-panel-shadow: 0 20px 48px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* The header is sticky (60-ish px) — stop in-page anchors landing under it. */
.home-v2 #hero,
.home-v2 #search,
.home-v2 #items,
.home-v2 #legal,
.home-v2 #leaderboard { scroll-margin-top: 5rem; }

/* Shared eyebrow pill (hero / how it works / live market / leaderboard).
   2026-09-24: 12px floor for every small uppercase label on the page (this
   pill, the path kickers, "Popular", "Sort by", the console and footer
   titles) — they were 9.6–10.9px and several were under 4.5:1 contrast. */
.home-v2 .hero-eyebrow,
.home-v2 .hiw-label,
.home-v2 .mk-label,
.home-v2 .lb-label,
.home-v2 .legal-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.9rem;
  padding: 0.38rem 0.85rem;
  border-radius: var(--r-pill);
  border: 1px solid rgba(96, 165, 250, 0.32);
  background: rgba(59, 130, 246, 0.13);
  color: var(--dl);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.1;
}

/* Visually hidden, still read by screen readers */
.home-v2 .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   1 · HERO — split "market console"
   Left: pitch, hero search (the buyer's job), the seller's button, one
   quiet perks line (2026-09-24; it replaced the three reward/streak/Pro
   chips). Right: the console that absorbed #statsBar.
   ============================================================ */
.home-v2 #hero {
  position: relative;
  /* clip sideways only: the hero search's suggestion list has to be able to
     drop below the hero (overflow: hidden cut it off at the border) */
  overflow-x: clip;
  overflow-y: visible;
  text-align: left;
  padding: clamp(2.75rem, 6vw, 4.75rem) clamp(1rem, 3vw, 2rem) clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid rgba(96, 165, 250, 0.14);
  background:
    radial-gradient(920px 440px at 10% -12%, rgba(59, 130, 246, 0.24), transparent 62%),
    radial-gradient(720px 380px at 92% 6%, rgba(34, 197, 94, 0.10), transparent 60%),
    radial-gradient(640px 340px at 72% 112%, rgba(251, 191, 36, 0.09), transparent 62%),
    linear-gradient(168deg, #13213a 0%, #101a2d 55%, #0d1622 100%);
}

/* style.css draws a dot field here; the redesign uses the grid below instead */
.home-v2 #hero::before { display: none; }

.home-v2 .hero-grid-fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.055) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(130% 95% at 50% 0%, #000 10%, transparent 72%);
  mask-image: radial-gradient(130% 95% at 50% 0%, #000 10%, transparent 72%);
}

.home-v2 .hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(1.75rem, 4vw, 3.25rem);
  align-items: center;
}

.home-v2 .hero-copy { min-width: 0; }

.home-v2 .hero-eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.16);
  animation: homeLivePulse 2.4s ease-in-out infinite;
}

@keyframes homeLivePulse {
  0%, 100% { opacity: 1;   box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.16); }
  50%      { opacity: 0.6; box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
}

.home-v2 .hero-title {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: clamp(1.95rem, 3.9vw, 3.1rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--heading);
  margin: 0 0 0.95rem;
  /* keep "straight from the sellers" off a third line on laptop widths */
  text-wrap: balance;
}

.home-v2 .hero-title-accent {
  background: linear-gradient(95deg, #60a5fa 0%, #93c5fd 38%, #fbbf24 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.home-v2 .hero-sub {
  max-width: 34rem;
  margin: 0;
  font-size: clamp(0.95rem, 1.5vw, 1.06rem);
  line-height: 1.62;
  color: var(--text-muted);
}

/* ---- Hero search (2026-09-24) — the buyer's job, done in the hero.
   The field is the page's one filled primary action; the seller path sits
   right under it as an outline button in the sellers' green, the same colour
   coding the two-path panel below uses (blue = buyers, green = sellers). ---- */
.home-v2 .hero-search {
  position: relative;
  max-width: 34rem;
  margin: 1.6rem 0 0;
}

.home-v2 .hero-search-field {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.4rem 0.4rem 1.05rem;
  border-radius: 1.05rem;
  border: 1px solid rgba(96, 165, 250, 0.42);
  background: rgba(11, 17, 29, 0.82);
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.38),
    0 0 0 4px rgba(59, 130, 246, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color var(--t), box-shadow var(--t);
}
.home-v2 .hero-search-field:focus-within {
  border-color: var(--accent-text);
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.38),
    0 0 0 4px rgba(59, 130, 246, 0.24);
}

.home-v2 .hero-search-icon {
  flex: none;
  font-size: 1.1rem;
  color: var(--accent-text);
}

.home-v2 #heroSearchInput {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 0.6rem 0.35rem;
  border: 0;
  background: transparent;
  color: var(--heading);
  font: 500 1.05rem/1.3 'Inter', sans-serif;
  outline: none;
}
.home-v2 #heroSearchInput::placeholder { color: var(--text-muted); opacity: 1; }
.home-v2 #heroSearchInput::-webkit-search-cancel-button { filter: invert(0.7); cursor: pointer; }

.home-v2 .hero-search-btn {
  flex: none;
  min-height: 46px;
  padding: 0 1.3rem;
  border: 0;
  border-radius: 0.8rem;
  background: var(--accent);
  color: #fff;
  font: 700 0.98rem/1 'Space Grotesk', 'Inter', sans-serif;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(59, 130, 246, 0.35);
  transition: background var(--t), transform var(--t-fast);
}
.home-v2 .hero-search-btn:hover { background: var(--accent-hover); transform: translateY(-1px); }
.home-v2 .hero-search-btn:focus-visible { outline: 2px solid #bfdbfe; outline-offset: 2px; }

/* Suggestions — sprite, name, live range (js/main.js renderHeroSuggest) */
.home-v2 .hero-suggest {
  position: absolute;
  z-index: 60;
  top: calc(100% + 0.45rem);
  left: 0;
  right: 0;
  padding: 0.35rem;
  border-radius: 1rem;
  border: 1px solid var(--border-strong);
  background: #111a2b;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.6);
  text-align: left;
}

.home-v2 .hs-option {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 48px;
  padding: 0.4rem 0.6rem;
  border-radius: 0.7rem;
  color: var(--text);
  text-decoration: none;
}
.home-v2 .hs-option:hover,
.home-v2 .hs-option.is-active { background: var(--surface-3); }
.home-v2 .hs-option.is-active { box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.45); }

.home-v2 .hs-tile {
  flex: none;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.55rem;
  background: var(--surface-inset);
}
.home-v2 .hs-tile img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  image-rendering: pixelated;
}

.home-v2 .hs-name {
  flex: 1;
  min-width: 0;
  font-size: 0.92rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-v2 .hs-name mark { background: none; color: var(--accent-text); }
/* Item sponsorships (2026-09-25): the sponsoring shop under the item name */
.home-v2 .hs-name--pinned { display: flex; flex-direction: column; gap: 1px; white-space: normal; }
.home-v2 .hs-name-txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-v2 .hs-seller,
.home-v2 .ic-seller {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  min-width: 0;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
  color: #fcd34d;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-v2 .hs-seller b,
.home-v2 .ic-seller b { letter-spacing: 0.03em; color: #fde68a; }

.home-v2 .hs-price {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font: 700 0.9rem/1.2 'Space Grotesk', 'Inter', sans-serif;
  white-space: nowrap;
}
.home-v2 .hs-price.price--dl { color: var(--dl); }
.home-v2 .hs-price.price--wl { color: var(--wl); }

.home-v2 .hs-meta {
  flex: none;
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.home-v2 .hs-meta--warn { color: #fbbf24; }

.home-v2 .hs-price-skel {
  flex: none;
  width: 64px;
  height: 12px;
  border-radius: 6px;
}

.home-v2 .hs-all {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-top: 0.2rem;
  padding: 0 0.6rem;
  border: 0;
  border-top: 1px solid var(--border-faint);
  border-radius: 0 0 0.7rem 0.7rem;
  background: none;
  color: var(--accent-text);
  font: 600 0.86rem/1 'Inter', sans-serif;
  text-align: left;
  cursor: pointer;
}
.home-v2 .hs-all:hover { color: #bfdbfe; background: rgba(59, 130, 246, 0.08); }

.home-v2 .hs-empty {
  margin: 0;
  padding: 0.8rem 0.7rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.home-v2 .hs-empty a { color: var(--accent-text); }

/* ---- Seller path: outline, green, same size as a real button ---- */
.home-v2 .hero-actions {
  justify-content: flex-start;
  gap: 0.7rem;
  margin: 1rem 0 0;
}

.home-v2 .hero-btn-sell {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 46px;
  padding: 0 1.3rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(52, 211, 153, 0.45);
  background: rgba(16, 185, 129, 0.08);
  color: #a7f3d0;
  font: 700 0.98rem/1 'Space Grotesk', 'Inter', sans-serif;
  text-decoration: none;
  transition: background var(--t), border-color var(--t), color var(--t), transform var(--t-fast);
}
.home-v2 .hero-btn-sell .gp-ic { color: #34d399; }
.home-v2 .hero-btn-sell-lead { color: #6ee7b7; font-weight: 500; }
.home-v2 .hero-btn-sell-arrow { transition: transform var(--t-fast); }
.home-v2 .hero-btn-sell:hover {
  background: rgba(16, 185, 129, 0.16);
  border-color: #34d399;
  color: #ecfdf5;
  transform: translateY(-1px);
}
.home-v2 .hero-btn-sell:hover .hero-btn-sell-arrow { transform: translateX(3px); }

/* ---- Perks line — the three old chips as quiet text links. Each link can
   be hidden on its own ([data-rewards-hide] when the kill-switch is on,
   .gp-unl-upsell for paying members — toggled with style.display = '' in
   main.js, so inline-flex has to be the stylesheet default). No separators,
   so a hidden link never strands a "·". ---- */
.home-v2 .hero-perks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.1rem;
  margin: 1.05rem 0 0;
  font-size: 0.84rem;
}

.home-v2 .hero-perk {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  min-height: 32px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--t-fast);
}
.home-v2 .hero-perk:hover { color: var(--text); }
.home-v2 .hero-perk:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.home-v2 .hero-perk strong { font-weight: 700; }

.home-v2 .hero-perk-sprite {
  width: 16px;
  height: 16px;
  flex: none;
  object-fit: contain;
  image-rendering: pixelated;
}

.home-v2 .hero-perk--gold strong,
.home-v2 .hero-perk--gold:hover { color: #fde68a; }
.home-v2 .hero-perk--flame .gp-ic { color: #fb923c; }
.home-v2 .hero-perk--flame:hover { color: #fdba74; }
.home-v2 .hero-perk--violet .hero-perk-glyph { color: #a78bfa; }
.home-v2 .hero-perk--violet strong { color: #ddd6fe; }
.home-v2 .hero-perk--violet:hover { color: #ddd6fe; }

/* ---- Market console (right) — real numbers only, never sample prices ---- */
.home-v2 .hero-console {
  position: relative;
  min-width: 0;
  border-radius: 1.3rem;
  border: 1px solid var(--home-panel-border);
  background:
    radial-gradient(420px 220px at 85% -20%, rgba(59, 130, 246, 0.18), transparent 65%),
    linear-gradient(170deg, rgba(31, 41, 55, 0.94), rgba(15, 22, 34, 0.96));
  box-shadow: 0 26px 64px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.home-v2 .hc-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.95rem;
  border-bottom: 1px solid var(--border-faint);
  background: rgba(10, 15, 25, 0.5);
  border-radius: 1.3rem 1.3rem 0 0;
}

.home-v2 .hc-dots { display: inline-flex; gap: 5px; }
.home-v2 .hc-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-strong);
}
.home-v2 .hc-dots i:first-child { background: #4b5563; }

.home-v2 .hc-bar-title {
  flex: 1;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* The badge follows the real state (js/main.js setMarketState):
   Syncing (blue) -> Live (green), or Reconnecting (amber). It used to say
   "live" with a pulsing green dot even when every number was a dash. */
.home-v2 .hc-live {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.24rem 0.6rem;
  border-radius: var(--r-pill);
  border: 1px solid rgba(96, 165, 250, 0.35);
  background: rgba(59, 130, 246, 0.12);
  color: #bfdbfe;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.home-v2 .hc-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #60a5fa;
}
.home-v2 .hero-console[data-state="live"] .hc-live {
  border-color: rgba(74, 222, 128, 0.3);
  background: rgba(74, 222, 128, 0.1);
  color: #86efac;
}
.home-v2 .hero-console[data-state="live"] .hc-live-dot {
  background: #4ade80;
  animation: homeLivePulse 2.4s ease-in-out infinite;
}
.home-v2 .hero-console[data-state="error"] .hc-live {
  border-color: rgba(251, 191, 36, 0.4);
  background: rgba(251, 191, 36, 0.1);
  color: #fde68a;
}
.home-v2 .hero-console[data-state="error"] .hc-live-dot { background: #fbbf24; }

.home-v2 .hc-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 1.35rem 0.5rem 1.25rem;
}

.home-v2 .hc-stat {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.28rem;
  padding: 0 0.5rem;
  text-align: center;
  min-width: 0;
}
.home-v2 .hc-stat + .hc-stat::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8%;
  height: 84%;
  border-left: 1px solid var(--border-faint);
}

.home-v2 .hc-stat-value {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: clamp(1.35rem, 2.6vw, 1.95rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--heading);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.home-v2 .hc-stat-value--sm { font-size: clamp(1.05rem, 2vw, 1.4rem); color: var(--accent-text); }

/* Sentence-case captions at 12px+ in the readable grey (were 9.6px
   uppercase at 3.8:1, and the "60d" chip was 1.8:1). */
.home-v2 .hc-stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.35;
}
.home-v2 .hc-stat-note {
  display: block;
  width: fit-content;
  margin: 0.2rem auto 0;
  padding: 0.06rem 0.4rem;
  border-radius: 0.35rem;
  background: rgba(148, 163, 184, 0.14);
  color: #cbd5e1;
  font-size: 0.75rem;
}

/* Loading: the two live numbers become a shimmer instead of a dash. */
.home-v2 .hero-console[data-state="loading"] .hc-stat--live .hc-stat-value {
  color: transparent;
  min-width: 3.2em;
  border-radius: 0.45rem;
}
.home-v2 .hero-console[data-state="loading"] .hc-stat--live .hc-stat-value,
.home-v2 .ic-price-skel,
.home-v2 .hs-price-skel {
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.1) 0%, rgba(148, 163, 184, 0.24) 50%, rgba(148, 163, 184, 0.1) 100%);
  background-size: 200% 100%;
  animation: homeShimmer 1.4s ease-in-out infinite;
}
@keyframes homeShimmer {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* Failed / timed out: say so, plainly, inside the console. */
.home-v2 .hc-status {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.45rem;
  margin: -0.35rem 1rem 1rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(251, 191, 36, 0.3);
  background: rgba(251, 191, 36, 0.08);
  color: #fde68a;
  font-size: 0.8rem;
  line-height: 1.4;
  text-align: left;
}
.home-v2 .hc-status[hidden] { display: none; }
.home-v2 .hc-status .gp-ic { flex: none; margin-top: 0.15rem; }

.home-v2 .hc-proof {
  list-style: none;
  margin: 0;
  padding: 0.9rem 1.1rem 1.1rem;
  border-top: 1px solid var(--border-faint);
  display: grid;
  gap: 0.6rem;
}

.home-v2 .hc-proof-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--text-muted);
}
.home-v2 .hc-proof-row strong { color: var(--text); font-weight: 600; }
/* display:flex above beats the UA [hidden] rule; the leaderboard row ships
   hidden until site-banner.js confirms the competition is on. */
.home-v2 .hc-proof-row[hidden] { display: none; }

.home-v2 .hc-proof-icon {
  flex: none;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  font-size: 0.78rem;
  border: 1px solid transparent;
}
.home-v2 .hc-proof-icon--blue  { background: rgba(59, 130, 246, 0.13); border-color: rgba(59, 130, 246, 0.3);  color: #60a5fa; }
.home-v2 .hc-proof-icon--gold  { background: rgba(251, 191, 36, 0.13); border-color: rgba(251, 191, 36, 0.32); color: var(--wl); }
.home-v2 .hc-proof-icon--green { background: rgba(16, 185, 129, 0.13); border-color: rgba(16, 185, 129, 0.3);  color: #34d399; }

/* Pixel locks parked along the console's bottom edge — decoration only.
   They stay BELOW the panel: anything hung off the top-right corner lands on
   the LIVE chip, and anything hung off the right edge crowds the viewport. */
.home-v2 .hc-float {
  position: absolute;
  width: 46px;
  height: 46px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.55));
  pointer-events: none;
}
.home-v2 .hc-float--dl {
  bottom: -19px;
  left: -16px;
  animation: homeFloat 6s ease-in-out infinite;
}
.home-v2 .hc-float--wl {
  width: 34px;
  height: 34px;
  right: 22px;
  bottom: -17px;
  animation: homeFloat 7.5s ease-in-out infinite reverse;
}

@keyframes homeFloat {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50%      { transform: translateY(-7px) rotate(4deg); }
}

@media (max-width: 980px) {
  .home-v2 #hero { text-align: center; }
  .home-v2 .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .home-v2 .hero-sub,
  .home-v2 .hero-search { margin-left: auto; margin-right: auto; }
  .home-v2 .hero-actions,
  .home-v2 .hero-perks { justify-content: center; }
  .home-v2 .hero-console { max-width: 460px; margin: 0.5rem auto 0; }
}

@media (max-width: 560px) {
  .home-v2 #hero { padding-top: 2rem; }
  .home-v2 .hero-title { font-size: 1.8rem; }
  .home-v2 .hero-sub { font-size: 0.95rem; }
  .home-v2 .hero-search { margin-top: 1.25rem; }
  .home-v2 .hero-search-field { padding-left: 0.85rem; }
  .home-v2 #heroSearchInput { font-size: 1rem; }
  .home-v2 .hero-search-btn { padding: 0 0.95rem; font-size: 0.92rem; }
  .home-v2 .hs-name { font-size: 0.88rem; }
  .home-v2 .hero-actions { flex-direction: column; align-items: stretch; }
  .home-v2 .hero-btn-sell { justify-content: center; min-height: 48px; }
  .home-v2 .hero-perks { gap: 0.1rem 0.9rem; font-size: 0.8rem; }
  .home-v2 .hero-perk { min-height: 36px; }
  .home-v2 .hc-float { display: none; }
  .home-v2 .hc-stats { padding: 1.1rem 0.25rem 1rem; }
  .home-v2 .hc-stat { padding: 0 0.3rem; }
  .home-v2 .hc-stat-label { font-size: 0.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  .home-v2 .hero-eyebrow-dot,
  .home-v2 .hero-console[data-state="live"] .hc-live-dot,
  .home-v2 .hero-console[data-state="loading"] .hc-stat--live .hc-stat-value,
  .home-v2 .ic-price-skel,
  .home-v2 .hs-price-skel,
  .home-v2 .hc-float { animation: none; }
}

/* ============================================================
   2 · HOW IT WORKS — two paths (buyers | sellers)
   The old markup was four equal cards in a row, so the style.css rules for
   .hiw-steps / .hiw-step / .hiw-step-num are reset here before restyling.
   ============================================================ */
.home-v2 #howItWorks {
  padding: clamp(3rem, 6vw, 4.5rem) 1rem;
  background:
    radial-gradient(760px 320px at 50% -20%, rgba(59, 130, 246, 0.09), transparent 65%),
    var(--bg-page-2);
}

.home-v2 .hiw-inner { max-width: 1060px; }

.home-v2 .hiw-heading {
  font-size: clamp(1.6rem, 3.4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.55rem;
}

.home-v2 .hiw-sub {
  font-size: 0.95rem;
  max-width: 460px;
  margin: 0 auto 2.25rem;
}

.home-v2 .hiw-paths {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
  text-align: left;
}
@media (max-width: 820px) {
  .home-v2 .hiw-paths { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin: 0 auto; }
}

.home-v2 .hiw-path {
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.5rem 1.4rem;
  border-radius: 1.3rem;
  border: 1px solid var(--border);
  background: var(--home-panel-bg);
  box-shadow: var(--home-panel-shadow);
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}
.home-v2 .hiw-path:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.home-v2 .hiw-path--buy  { border-color: rgba(59, 130, 246, 0.24); }
.home-v2 .hiw-path--buy:hover { border-color: rgba(96, 165, 250, 0.5); }
.home-v2 .hiw-path--sell {
  border-color: rgba(52, 211, 153, 0.22);
  background:
    radial-gradient(620px 280px at 88% -10%, rgba(16, 185, 129, 0.16), transparent 62%),
    linear-gradient(168deg, #16281f 0%, #131f24 55%, #111827 100%);
}
.home-v2 .hiw-path--sell:hover { border-color: rgba(52, 211, 153, 0.48); }

.home-v2 .hiw-path-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-bottom: 1.05rem;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid var(--border-faint);
}

.home-v2 .hiw-path-icon {
  flex: none;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.8rem;
  font-size: 1.2rem;
  border: 1px solid transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.home-v2 .hiw-path--buy  .hiw-path-icon { background: rgba(59, 130, 246, 0.14); border-color: rgba(59, 130, 246, 0.32); color: #60a5fa; }
.home-v2 .hiw-path--sell .hiw-path-icon { background: rgba(16, 185, 129, 0.14); border-color: rgba(16, 185, 129, 0.32); color: #34d399; }

.home-v2 .hiw-path-kicker {
  margin: 0 0 0.18rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.home-v2 .hiw-path--buy  .hiw-path-kicker { color: var(--accent-text); }
.home-v2 .hiw-path--sell .hiw-path-kicker { color: #34d399; }

.home-v2 .hiw-path-title {
  margin: 0;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--heading);
}

/* reset the old 4-across grid + floating number badge */
.home-v2 .hiw-steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.05rem;
  list-style: none;
  margin: 0 0 1.35rem;
  padding: 0;
}
.home-v2 .hiw-steps::before { content: none; }

.home-v2 .hiw-step {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  text-align: left;
  transition: none;
}
.home-v2 .hiw-step:hover { transform: none; box-shadow: none; border: 0; }

.home-v2 .hiw-step-num {
  position: static;
  transform: none;
  flex: none;
  width: 26px;
  height: 26px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--surface-3);
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  font-size: 0.75rem;
  box-shadow: none;
}
.home-v2 .hiw-path--buy .hiw-step-num {
  background: rgba(59, 130, 246, 0.16);
  border-color: rgba(96, 165, 250, 0.4);
  color: #93c5fd;
}
.home-v2 .hiw-path--sell .hiw-step-num {
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(52, 211, 153, 0.4);
  color: #6ee7b7;
}
.home-v2 .hiw-step--reward .hiw-step-num {
  background: var(--wl);
  border-color: var(--wl);
  color: #111827;
}

.home-v2 .hiw-step-body { min-width: 0; }
.home-v2 .hiw-step-body h4 {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.3rem;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--heading);
}
.home-v2 .hiw-step-body p {
  margin: 0;
  font-size: 0.83rem;
  line-height: 1.6;
  color: var(--text-muted);
}
.home-v2 .hiw-step-body a { color: var(--dl); }

/* Reward strip inside the sellers panel — vanishes with the kill-switch */
.home-v2 .hiw-bonus {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 0 0 1.35rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--r);
  border: 1px solid rgba(251, 191, 36, 0.32);
  background: rgba(251, 191, 36, 0.08);
  font-size: 0.8rem;
  line-height: 1.55;
  color: #fde68a;
}
.home-v2 .hiw-bonus strong { color: var(--wl); }
.home-v2 .hiw-bonus a { color: #fde68a; font-weight: 600; }

.home-v2 .hiw-bonus-sprite {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.home-v2 .hiw-path-cta {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.15rem;
  border-radius: var(--r-pill);
  border: 1px solid rgba(96, 165, 250, 0.32);
  background: rgba(59, 130, 246, 0.1);
  color: #bfdbfe;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--t), border-color var(--t), color var(--t), transform var(--t-fast);
}
.home-v2 .hiw-path-cta:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateX(2px);
}
.home-v2 .hiw-path-cta--sell {
  border-color: rgba(52, 211, 153, 0.35);
  background: rgba(16, 185, 129, 0.1);
  color: #a7f3d0;
}
.home-v2 .hiw-path-cta--sell:hover { background: #16a34a; border-color: #16a34a; color: #fff; }

/* ============================================================
   3 · LIVE MARKET — search panel + toolbar + item grid
   ============================================================ */
.home-v2 #search {
  margin: clamp(2.75rem, 5vw, 4rem) 0 0;
  padding: 0 1rem;
}

.home-v2 .mk-head { margin: 0 auto 1.6rem; text-align: center; }

.home-v2 .mk-heading {
  font-size: clamp(1.6rem, 3.4vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.55rem;
}

.home-v2 .mk-sub { font-size: 0.92rem; }

.home-v2 .mk-panel {
  max-width: 720px;
  margin: 0 auto;
  padding: 1rem;
  border-radius: 1.3rem;
  border: 1px solid var(--home-panel-border);
  background: var(--home-panel-bg);
  box-shadow: var(--home-panel-shadow);
  /* The hero's "Check price" scrolls here (search box right under the
     sticky header, the results straight below it). */
  scroll-margin-top: 5.5rem;
  transition: border-color 0.6s ease;
}

/* Hero hand-off (2026-09-26, js/main.js showHeroResultsInGrid): after the
   scroll lands, the box that now holds the hero's query rings twice, so the
   visitor sees this is where searching happens. */
.home-v2 .mk-panel.is-handoff {
  border-color: rgba(96, 165, 250, 0.8);
  animation: homeHandoff 1.2s ease-out 2;
}
.home-v2 .mk-panel.is-handoff .search-pill {
  border-color: var(--accent-text);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.35), 0 0 0 3px rgba(59, 130, 246, 0.35);
}
@keyframes homeHandoff {
  0%   { box-shadow: 0 20px 48px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 0 0 0 rgba(96, 165, 250, 0.6); }
  100% { box-shadow: 0 20px 48px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 0 0 18px rgba(96, 165, 250, 0); }
}

.home-v2 .search-pill {
  display: flex;
  width: 100%;
  background: var(--surface-inset);
  border-color: var(--border-strong);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.35);
}

.home-v2 .search-pill-icon {
  flex: none;
  margin-left: 1.05rem;
  font-size: 1.05rem;
  color: var(--text-muted);
  transition: color var(--t);
}
.home-v2 .search-pill:focus-within .search-pill-icon { color: var(--accent-text); }

.home-v2 #search input {
  padding: 0.88rem 0.85rem;
  font-size: 1rem;
}

.home-v2 #search #searchBtn {
  padding: 0.68rem 1.35rem;
  font-size: 0.9rem;
}

/* Popular-item chips (wired to #searchInput by the inline script on the page).
   They live inside #search, so the `#search button` rules in style.css —
   including the masked magnifier in ::before — have to be undone here. */
.home-v2 .mk-quick {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0.85rem 0.15rem 0.1rem;
}

.home-v2 .mk-quick-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-right: 0.15rem;
}

.home-v2 #search .mk-quick-chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin: 0;
  padding: 0.34rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--surface-2);
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.home-v2 #search .mk-quick-chip::before { content: none; }
.home-v2 #search .mk-quick-chip:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-text);
  transform: translateY(-1px);
}

/* ---- Toolbar: sort rail + result count, above the grid ---- */
.home-v2 .mk-toolbar {
  max-width: 1200px;
  margin: 2.1rem auto 0;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem 1rem;
  flex-wrap: wrap;
}

.home-v2 .sort-bar {
  margin: 0;
  background: var(--surface-2);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.home-v2 .sort-btn {
  min-height: 36px;
  font-size: 0.84rem;
}

.home-v2 .sort-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.home-v2 .sort-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  white-space: nowrap;
}

.home-v2 .search-result-count {
  display: inline-block;
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.home-v2 .search-result-count:empty { display: none; }

/* Market read failed / timed out (js/main.js setMarketState). The grid under
   it still works from the local catalog; this only explains the missing
   prices and offers a retry (retries also run on their own). */
.home-v2 .mk-notice {
  max-width: 760px;
  margin: 1.1rem auto 0;
  padding: 0.75rem 0.85rem 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 1rem;
  border: 1px solid rgba(251, 191, 36, 0.32);
  background: rgba(251, 191, 36, 0.07);
  color: #fde68a;
  text-align: left;
}
.home-v2 .mk-notice[hidden] { display: none; }
.home-v2 .mk-notice-icon { flex: none; font-size: 1.1rem; color: #fbbf24; }
.home-v2 .mk-notice-text { flex: 1; margin: 0; font-size: 0.86rem; line-height: 1.45; color: #fef3c7; }
.home-v2 .mk-notice-text strong { color: #fde68a; }
.home-v2 .mk-notice-btn {
  flex: none;
  min-height: 44px;
  padding: 0 1.05rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(251, 191, 36, 0.5);
  background: transparent;
  color: #fde68a;
  font: 700 0.86rem/1 'Inter', sans-serif;
  cursor: pointer;
}
.home-v2 .mk-notice-btn:hover { background: rgba(251, 191, 36, 0.14); color: #fff7d6; }
.home-v2 .mk-notice-btn:disabled { opacity: 0.6; cursor: progress; }
@media (max-width: 560px) {
  .home-v2 .mk-notice { margin-left: 0.75rem; margin-right: 0.75rem; flex-wrap: wrap; }
  .home-v2 .mk-notice-btn { width: 100%; }
}

/* Phones: full 44px touch targets for the chips and the sort rail. */
@media (max-width: 620px) {
  .home-v2 #search .mk-quick-chip,
  .home-v2 #search #searchBtn,
  .home-v2 .sort-btn { min-height: 44px; }
  .home-v2 .sort-btn { padding: 0 0.95rem; font-size: 0.82rem; }
  .home-v2 .mk-toolbar { padding: 0 0.75rem; }
  .home-v2 .sort-bar {
    /* Undo the style.css full-bleed sticky rail — inside the toolbar it
       would stick with the page gutters and look detached. */
    position: static;
    width: 100%;
    max-width: none;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0.45rem 0.6rem;
    border: 1px solid var(--border);
    border-radius: var(--r-pill);
    background: var(--surface-2);
  }
  .home-v2 .sort-label { display: inline; }
}

/* ---- Item cards ---- */
.home-v2 #itemList {
  grid-template-columns: repeat(auto-fill, minmax(172px, 1fr));
  gap: 0.9rem;
  padding: 1.35rem 1rem 2rem;
}

.home-v2 .item-card {
  padding: 0.8rem 0.8rem 0.75rem;
  border-radius: var(--r-xl);
  background:
    linear-gradient(170deg, rgba(59, 130, 246, 0.05), transparent 45%),
    var(--surface-2);
}
.home-v2 .item-card:hover { border-color: rgba(96, 165, 250, 0.55); }

/* The item the hero's "Check price" was looking for (exact name, or the only
   result): ringed + tagged for as long as the grid shows that search, with a
   one-off pop when the scroll lands (.is-found-flash). */
.home-v2 .item-card.is-found {
  border-color: rgba(96, 165, 250, 0.85);
  box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.55), 0 0 0 0 rgba(96, 165, 250, 0), 0 14px 34px rgba(59, 130, 246, 0.28);
}
.home-v2 .item-card.is-found::before { opacity: 1; }
.home-v2 .item-card.is-found-flash { animation: homeFoundPop 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 2; }
@keyframes homeFoundPop {
  0%   { transform: scale(1);    box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.55), 0 0 0 0 rgba(96, 165, 250, 0.6), 0 14px 34px rgba(59, 130, 246, 0.28); }
  30%  { transform: scale(1.05); }
  100% { transform: scale(1);    box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.55), 0 0 0 14px rgba(96, 165, 250, 0), 0 14px 34px rgba(59, 130, 246, 0.28); }
}
.home-v2 .ic-found {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
/* Reduced motion keeps the static rings + tag (the hand-off still reads),
   just no pulsing or pop. Declared after the animated rules so it wins. */
@media (prefers-reduced-motion: reduce) {
  .home-v2 .mk-panel.is-handoff,
  .home-v2 .item-card.is-found-flash { animation: none; }
}

.home-v2 .ic-tile {
  border-radius: var(--r-lg);
  padding: 0.85rem 0.7rem;
  margin-bottom: 0.7rem;
  background:
    radial-gradient(circle at 50% 118%, rgba(59, 130, 246, 0.14), transparent 62%),
    var(--surface-inset);
}

.home-v2 .item-card strong { font-size: 0.9rem; margin-bottom: 0.4rem; }

.home-v2 .item-price {
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.25rem;
}

.home-v2 .item-submissions { margin-bottom: 0.75rem; }
.home-v2 .ic-seller { justify-content: center; max-width: 100%; margin: -0.35rem 0 0.7rem; }

.home-v2 .item-price.price--pending { min-height: 1.3rem; }
.home-v2 .ic-price-skel {
  display: inline-block;
  width: 72%;
  max-width: 110px;
  height: 0.85rem;
  border-radius: 0.4rem;
}
.home-v2 .item-price.price--unavailable {
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 600;
}

.home-v2 .load-more-btn {
  border-radius: var(--r-pill);
  border-width: 1px;
  background: var(--surface-2);
  padding: 0.7rem 2.1rem;
}

@media (max-width: 480px) {
  .home-v2 #itemList {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
    padding: 1rem 0.75rem 2rem;
  }
}

/* ============================================================
   4 · WEEKLY LEADERBOARD — gold panel, podium-tinted top three.
   Rows are built by js/leaderboard.js (fixed markup), so the top-three
   treatment is done with :nth-child on .lb-rows.
   ============================================================ */
.home-v2 #leaderboard {
  padding: clamp(2.75rem, 5vw, 4rem) 1rem;
  border-top: 1px solid var(--border-faint);
  border-bottom: 1px solid var(--border-faint);
  background:
    radial-gradient(720px 300px at 50% -10%, rgba(251, 191, 36, 0.07), transparent 65%),
    var(--bg-page-2);
}

.home-v2 .lb-inner { max-width: 940px; }

.home-v2 .lb-panel {
  padding: clamp(1.4rem, 3vw, 2rem) clamp(1.1rem, 3vw, 1.9rem) 1.5rem;
  border-radius: 1.4rem;
  border: 1px solid rgba(251, 191, 36, 0.22);
  background:
    radial-gradient(640px 280px at 50% -12%, rgba(251, 191, 36, 0.13), transparent 62%),
    linear-gradient(170deg, #1d2231 0%, #161d2c 55%, #121827 100%);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.home-v2 .lb-head { text-align: center; margin-bottom: 1.5rem; }

.home-v2 .lb-label {
  border-color: rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.12);
  color: #fde68a;
}

.home-v2 .lb-heading {
  display: block;
  font-size: clamp(1.45rem, 3.2vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

.home-v2 .lb-sub { font-size: 0.88rem; max-width: 520px; margin: 0 auto; }

.home-v2 .lb-reset {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.9rem 0 0;
  padding: 0.32rem 0.8rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--border-strong);
  background: rgba(17, 24, 39, 0.6);
  font-size: 0.75rem;
  color: var(--text-muted);
}
.home-v2 .lb-reset .gp-ic { color: var(--accent-text); }

.home-v2 .lb-rows { gap: 8px 14px; }

.home-v2 .lb-row {
  gap: 11px;
  padding: 9px 12px;
  border-radius: var(--r);
  background: rgba(17, 24, 39, 0.55);
}

.home-v2 .lb-rank {
  width: 24px;
  height: 24px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface-3);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
}

.home-v2 .lb-row--first {
  border-color: rgba(251, 191, 36, 0.5);
  background: linear-gradient(95deg, rgba(251, 191, 36, 0.16), rgba(17, 24, 39, 0.55) 60%);
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.12);
}
.home-v2 .lb-row--first .lb-rank,
.home-v2 .lb-rank--gold {
  border-color: var(--wl);
  background: rgba(251, 191, 36, 0.2);
  color: var(--wl);
  font-size: 0.8rem;
}
.home-v2 .lb-row--first .lb-name { color: #fde68a; }

.home-v2 .lb-rows .lb-row:nth-child(2):not(.lb-row--open) {
  border-color: rgba(203, 213, 225, 0.32);
  background: linear-gradient(95deg, rgba(203, 213, 225, 0.09), rgba(17, 24, 39, 0.55) 60%);
}
.home-v2 .lb-rows .lb-row:nth-child(3):not(.lb-row--open) {
  border-color: rgba(217, 119, 6, 0.34);
  background: linear-gradient(95deg, rgba(217, 119, 6, 0.1), rgba(17, 24, 39, 0.55) 60%);
}
/* rankBadge() renders the medal icon AND the digit for ranks 2–3; a 24px
   circle can't hold both, so those badges widen into a pill. */
.home-v2 .lb-rank--medal {
  width: auto;
  min-width: 24px;
  padding: 0 0.4rem;
  gap: 0.2rem;
  border-radius: var(--r-pill);
  font-size: 0.75rem;
}
.home-v2 .lb-rows .lb-row:nth-child(2) .lb-rank--medal {
  border-color: rgba(203, 213, 225, 0.5);
  background: rgba(203, 213, 225, 0.14);
  color: #e2e8f0;
}
.home-v2 .lb-rows .lb-row:nth-child(3) .lb-rank--medal {
  border-color: rgba(217, 119, 6, 0.55);
  background: rgba(217, 119, 6, 0.16);
  color: #fdba74;
}

.home-v2 .lb-prize {
  margin-left: auto;
  padding: 0.16rem 0.5rem;
  border-radius: var(--r-pill);
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.22);
}
.home-v2 .lb-row--first .lb-prize {
  background: rgba(251, 191, 36, 0.14);
  border-color: rgba(251, 191, 36, 0.35);
  color: var(--wl);
}

.home-v2 .lb-foot { margin-top: 1.35rem; }

@media (max-width: 640px) {
  .home-v2 .lb-panel { padding: 1.3rem 1rem 1.25rem; }
}

/* ============================================================
   5 · RULES & LEGAL — summary card beside the accordions
   ============================================================ */
.home-v2 #legal {
  max-width: 1060px;
  margin: clamp(2.75rem, 5vw, 4rem) auto;
  padding: 0 1rem;
}

.home-v2 .legal-inner {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.home-v2 .legal-aside { position: sticky; top: 5.25rem; }

.home-v2 .legal-heading {
  display: flex;
  justify-content: flex-start;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.6rem;
}
.home-v2 .legal-heading .gp-ic { color: var(--accent-text); }

.home-v2 .legal-sub { margin: 0; max-width: none; }

.home-v2 .legal-contact {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 1.1rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border-faint);
  font-size: 0.8rem;
  color: var(--text-muted);
  overflow-wrap: anywhere;
}
.home-v2 .legal-contact .gp-ic { color: var(--accent-text); }

.home-v2 .legal-card {
  padding: 0.7rem;
  border-radius: 1.3rem;
  border-color: var(--home-panel-border);
  background: var(--home-panel-bg);
  box-shadow: var(--home-panel-shadow);
}

.home-v2 .legal-card details {
  border-radius: var(--r-lg);
  background: rgba(14, 21, 34, 0.7);
}

@media (max-width: 860px) {
  .home-v2 .legal-inner { grid-template-columns: minmax(0, 1fr); }
  .home-v2 .legal-aside { position: static; text-align: center; }
  .home-v2 .legal-heading { justify-content: center; }
  .home-v2 .legal-contact { justify-content: center; border-top: 0; padding-top: 0; }
}

/* ============================================================
   6 · FOOTER — brand + CTA + link columns.
   .foot-* is shared with item.html, so all of it stays scoped to .home-v2.
   ============================================================ */
.home-v2 footer {
  margin-top: 0;
  padding: clamp(2.75rem, 5vw, 4rem) 1rem 1.75rem;
  text-align: left;
  border-top: 1px solid var(--border);
  background:
    radial-gradient(760px 260px at 20% 0%, rgba(59, 130, 246, 0.09), transparent 68%),
    #0b111d;
}

.home-v2 .foot-inner { max-width: 1060px; }

.home-v2 .foot-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.home-v2 .foot-logo { height: 46px; margin-bottom: 0.75rem; }

.home-v2 .foot-tag {
  max-width: 30ch;
  margin: 0 0 1.15rem;
  font-size: 0.86rem;
}

.home-v2 .foot-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.62rem 1.2rem;
  border-radius: var(--r-pill);
  border: 1px solid rgba(251, 191, 36, 0.4);
  background: rgba(251, 191, 36, 0.1);
  color: #fde68a;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: background var(--t), border-color var(--t), color var(--t), transform var(--t-fast);
}
.home-v2 .foot-cta:hover {
  background: var(--wl);
  border-color: var(--wl);
  color: #111827;
  transform: translateY(-2px);
}

.home-v2 .foot-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.home-v2 .foot-col { display: flex; flex-direction: column; gap: 0.5rem; }

.home-v2 .foot-col-title {
  margin: 0 0 0.15rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.home-v2 .foot-col a {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--t-fast);
}
.home-v2 .foot-col a:hover { color: var(--accent-text); }

.home-v2 .foot-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
  padding-top: 1.15rem;
  border-top: 1px solid var(--border-faint);
}

.home-v2 .footer-legal-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin: 0;
}
.home-v2 .footer-consent-wrap { margin: 0; }
.home-v2 .foot-copy { margin: 0; text-align: right; }

@media (max-width: 760px) {
  .home-v2 footer { text-align: center; }
  .home-v2 .foot-top { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .home-v2 .foot-tag { max-width: 34ch; }
  .home-v2 .foot-cols { width: 100%; max-width: 420px; gap: 1.5rem 1rem; }
  .home-v2 .foot-col { align-items: center; }
  .home-v2 .foot-bottom { justify-content: center; }
  .home-v2 .footer-legal-links { justify-content: center; }
  .home-v2 .foot-copy { text-align: center; }
}

@media (max-width: 420px) {
  .home-v2 .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
