/* ============================================================
   V6 BOLD — clean single-source stylesheet for discover.php?v6=1
   Brutalist: solid #050505 bg, hard borders, neon accents,
   hard GPU box-shadows. One coherent file (no appended patches).
   ============================================================ */

:root {
  --bg: #050505;
  --card-bg: #111111;
  --text: #ffffff;
  --text-dim: #8b8b8b;
  --neon-green: #ccff00;
  /* Item 3: match/social/connect accents used to be purple (#b033ff), which
     reads as the old theme. Point them at the V6 hero green so no stray
     purple leaks through. Real category colors keep their own vars below
     (--cat-tv, --cat-music), so TV/music pills are unaffected. */
  --neon-pink: #ccff00;
  --neon-purple: #ccff00;
  --neon-blue: #00f0ff;
  --neon-orange: #ff3c00;
  --cat-movies: #00f0ff;
  --cat-tv: #b033ff;
  --cat-music: #ff2fb3;
  --cat-books: #ffd400;
  --cat-podcasts: #2dd4bf;
  --cat-videos: #38bdf8;
  --cat-facts: #ccff00;
  --cat-jokes: #ffb000;
  --cat-lifehacks: #2aff87;
  --cat-memes: #ff7a18;
  --cat-local: #14f195;
  --cat-travel: #06b6d4;
  --cat-place: #22c55e;
  --cat-shopping: #f59e0b;
  --cat-webcontent: #60a5fa;
  --cat-boardgames: var(--cat-shopping);
  --cat-videogames: #ff3c00;
  --cat-sports: #84cc16;
  --border-color: #333333;
  --radius: 16px;
  --radius-pill: 999px;
  /* RGB triplets so alpha glows (rgba(...)) and the dotted canvas can be
     re-tinted by a palette skin without touching 100+ call sites. In the
     default Bold theme these equal the original literals — a pure no-op. */
  --ng-rgb: 204,255,0;
  --bg-rgb: 5,5,5;
  --dot: #222;
}

/* ---- Page shell: force the dark dotted canvas everywhere ---- */
html body.page-discover,
html body.page-discover #main {
  background-color: var(--bg) !important;
  color: var(--text) !important;
  background-image: radial-gradient(var(--dot,#222) 1px, transparent 1px) !important;
  background-size: 24px 24px !important;
}
html body.page-discover #main { padding-top: 0 !important; }
html body.page-discover #main .container,
html body.page-discover #main .container .wrapper {
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Per-card accent: every interactive element inside a card inherits its
   category color (take=green, match=green, media=blue, tournament=orange)
   instead of a hardcoded green. Nav / non-card surfaces fall back to green. */
html body.page-discover { --card-accent: var(--neon-green); }
html body.page-discover #main .card { --card-accent: var(--neon-green); }
html body.page-discover #main .card.match { --card-accent: var(--neon-pink); }
html body.page-discover #main .card.media { --card-accent: var(--neon-blue); }
html body.page-discover #main .card.tournament { --card-accent: var(--neon-orange); }

/* ============================================================
   Global V6 shell — applies to every shared V6 page (body.v6-mode),
   not just discover. Dedupes the legacy header/footer/tabbar and
   lays the dark dotted canvas so the whole site shares the V6
   chrome. Page-specific content is still themed per page.
   ============================================================ */
html body.v6-mode {
  background-color: var(--bg) !important;
  background-image: radial-gradient(var(--dot,#222) 1px, transparent 1px) !important;
  background-size: 24px 24px !important;
  color: var(--text) !important;
}
html.light-mode body.v6-mode {
  --bg: #050505;
  --card-bg: #111111;
  --text: #ffffff;
  --text-dim: #8b8b8b;
  --border-color: #333333;
  background-color: var(--bg) !important;
  background-image: radial-gradient(var(--dot,#222) 1px, transparent 1px) !important;
  background-size: 24px 24px !important;
  color: var(--text) !important;
}
html body.v6-mode #sticky-header,
html body.v6-mode .header-area,
html body.v6-mode #main-menu,
html body.v6-mode .weird-tabbar,
html body.v6-mode .vb-head,
html body.v6-mode .vb-foot,
html body.v6-mode .vb-tabs {
  display: none !important;
}
html body.v6-mode #main {
  padding-top: 0 !important;
  margin-top: 0 !important;
}
html body.v6-mode {
  margin: 0 !important;
  padding-top: 0 !important;
}

/* ---- Global V6 page foundation (all non-stream pages) ---- */
html body.v6-mode #home.slider-area,
html body.v6-mode #main > .slider-area {
  display: none !important;
}
html body.v6-mode:not(.page-discover) #main {
  min-height: calc(100vh - var(--v6-nav-height, 0px)) !important;
  color: var(--text) !important;
}
html body.v6-mode:not(.page-discover) #main > .container {
  width: min(1180px, calc(100vw - 24px)) !important;
  max-width: 1180px !important;
  margin: 0 auto !important;
  padding: clamp(18px, 3vw, 34px) 0 56px !important;
  background: transparent !important;
}
html body.v6-mode:not(.page-discover) #main > .container > .wrapper {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--text) !important;
  text-align: left !important;
}
html body.v6-mode:not(.page-discover) #main :where(h1, h2, h3, h4) {
  color: var(--text) !important;
  font-family: 'Space Grotesk', Inter, system-ui, sans-serif !important;
  font-weight: 900 !important;
  letter-spacing: -0.025em !important;
}
html body.v6-mode:not(.page-discover) #main :where(p, li, td, th, label, small, span) {
  border-color: var(--border-color);
}
html body.v6-mode:not(.page-discover) #main :where(p, li, td, label, small) {
  color: inherit;
}
html.light-mode body.v6-mode:not(.page-discover) #main :where(h1, h2, h3, h4, summary, strong) {
  color: var(--text) !important;
}
html.light-mode body.v6-mode:not(.page-discover) #main :where(p, li, td, label, small, em, span) {
  color: var(--text-dim) !important;
}
html.light-mode body.v6-mode:not(.page-discover) #main :where(a:not(.btn):not(.btn-glow):not(.nav-link)) {
  color: var(--neon-blue) !important;
}
html body.v6-mode:not(.page-discover) #main :where(a:not(.btn):not(.btn-glow):not(.nav-link)) {
  color: var(--neon-blue) !important;
  text-decoration-color: rgba(0,240,255,0.35) !important;
}
html body.v6-mode:not(.page-discover) #main :where(a:not(.btn):not(.btn-glow):not(.nav-link)):hover {
  color: var(--neon-green) !important;
}
html body.v6-mode:not(.page-discover) #main :where(
  .discover-wrap,
  .faq-wrap,
  .faq-hero,
  .faq-section,
  .contact-card,
  .contact-panel,
  .settings-card,
  .profile-card,
  .acct-card,
  .question-card,
  .answer-card,
  .match-card,
  .play-card,
  .admin-card,
  .passport-card,
  .taste-card,
  .notify-card,
  .panel,
  .box,
  .well,
  .card,
  .alert,
  fieldset,
  table
) {
  background: var(--card-bg) !important;
  background-image: none !important;
  border: 2px solid var(--border-color) !important;
  border-radius: var(--radius) !important;
  color: var(--text) !important;
  box-shadow: var(--sh, 4px 4px 0 rgba(0,0,0,0.75)) !important;
}
html body.v6-mode:not(.page-discover) #main :where(.topav2, .topav3, .pleft3, .jumpa) {
  background: var(--card-bg) !important;
  background-image: none !important;
  border: 2px solid var(--border-color) !important;
  border-radius: var(--radius) !important;
  color: var(--text) !important;
  text-align: left !important;
  box-shadow: var(--sh, 4px 4px 0 rgba(0,0,0,0.75)) !important;
}
html body.v6-mode:not(.page-discover) #main :where(.discover-wrap, .faq-wrap) {
  max-width: 1000px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: clamp(14px, 2.5vw, 24px) !important;
}
html body.v6-mode:not(.page-discover) #main :where(.faq-hero, .faq-section, .contact-card, .contact-panel, .settings-card, .profile-card, .card, .panel, .box, .well, .topav2, .topav3, .pleft3) {
  padding: clamp(14px, 2.2vw, 22px) !important;
  margin-bottom: 16px !important;
}
html body.v6-mode:not(.page-discover) #main > .container > .wrapper :where(ul:not([class]), ol:not([class])) {
  margin: 0 0 1rem !important;
  padding-left: 1.35rem !important;
}
html body.v6-mode:not(.page-discover) #main > .container > .wrapper :where(ul:not([class])) {
  list-style: disc !important;
}
html body.v6-mode:not(.page-discover) #main > .container > .wrapper :where(ol:not([class])) {
  list-style: decimal !important;
}
html body.v6-mode:not(.page-discover) #main > .container > .wrapper :where(li:not([class])) {
  margin-bottom: 0.42rem !important;
  line-height: 1.6 !important;
}
html body.v6-mode:not(.page-discover) #main :where(details) {
  background: var(--card-bg) !important;
  border: 2px solid var(--border-color) !important;
  border-radius: var(--radius) !important;
  color: var(--text) !important;
  padding: 0.85rem !important;
  margin-bottom: 1rem !important;
  box-shadow: var(--sh, 4px 4px 0 rgba(0,0,0,0.75)) !important;
}
html body.v6-mode:not(.page-discover) #main :where(summary) {
  cursor: pointer !important;
  color: var(--text) !important;
  font-weight: 900 !important;
  letter-spacing: 0.03em !important;
  text-transform: uppercase !important;
}
html body.v6-mode:not(.page-discover) #main :where(details[open] summary) {
  color: var(--neon-green) !important;
  margin-bottom: 0.75rem !important;
}
html body.v6-mode:not(.page-discover) #main :where(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), textarea, select) {
  width: 100%;
  min-height: 44px !important;
  box-sizing: border-box !important;
  background: var(--bg) !important;
  color: var(--text) !important;
  border: 2px solid var(--border-color) !important;
  border-radius: 12px !important;
  padding: 0.68rem 0.8rem !important;
  box-shadow: none !important;
  text-align: left !important;
}
html body.v6-mode:not(.page-discover) #main :where(textarea) {
  min-height: 120px !important;
}
html body.v6-mode:not(.page-discover) #main :where(input:not([type="checkbox"]):not([type="radio"]):focus, textarea:focus, select:focus) {
  outline: 3px solid rgba(0,240,255,0.24) !important;
  outline-offset: 2px !important;
  border-color: var(--neon-blue) !important;
}
html body.v6-mode:not(.page-discover) #main :where(fieldset) {
  padding: 1rem !important;
  margin-bottom: 1rem !important;
}
html body.v6-mode:not(.page-discover) #main :where(legend) {
  width: auto !important;
  max-width: 100% !important;
  padding: 0.38rem 0.7rem !important;
  background: var(--bg) !important;
  border: 2px solid var(--border-color) !important;
  border-radius: 999px !important;
  color: var(--neon-green) !important;
  font-weight: 900 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
}
html body.v6-mode:not(.page-discover) #main :where(optgroup) {
  color: var(--text) !important;
  background: var(--bg) !important;
  font-weight: 900 !important;
}
html body.v6-mode:not(.page-discover) #main :where(option) {
  color: var(--text) !important;
  background: var(--bg) !important;
}
html body.v6-mode:not(.page-discover) #main :where(input[type="checkbox"], input[type="radio"]) {
  accent-color: var(--neon-green) !important;
}
html body.v6-mode:not(.page-discover) #main :where(button:not(:is(.ttt-cell, .c4-drop, .hm-letter, .db-h, .db-v, .mm-card, .gm-cell, .ch-cell, .ch-promo-btn, .ck-cell, .bg-point, .bg-bar-stack, .bg-off-box, .mc-pit, .rps-pick, .nim-btn, .ww-token, .oe-pick, .pig-btn-roll, .pig-btn-bank, .sticks-btn, .chop-hand, .chop-my-hand, .chop-opp-hand, .l21-btn, .l21-btn-hit, .l21-btn-stand, .coin-btn, .tv-choice, .std-card, .cc-card, .cc-swatch, .cc-draw-btn, .hss-card, .hss-response-card, .hss-judge-card, .hh-board-tool, .table-action-btn, .monog-board-action, .monog-portfolio-row, .monog-btn, .wordsg-btn, .wordsg-btn-alt, .wordsg-btn-danger)), input[type="submit"], input[type="button"], .btn, .btn-glow, a.button) {
  min-height: 44px !important;
  border-radius: 12px !important;
  border: 2px solid var(--border-color) !important;
  background: var(--bg) !important;
  background-image: none !important;
  color: var(--text) !important;
  box-shadow: none !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.03em !important;
  text-decoration: none !important;
}
html body.v6-mode:not(.page-discover) #main :where(button:not(:is(.ttt-cell, .c4-drop, .hm-letter, .db-h, .db-v, .mm-card, .gm-cell, .ch-cell, .ch-promo-btn, .ck-cell, .bg-point, .bg-bar-stack, .bg-off-box, .mc-pit, .rps-pick, .nim-btn, .ww-token, .oe-pick, .pig-btn-roll, .pig-btn-bank, .sticks-btn, .chop-hand, .chop-my-hand, .chop-opp-hand, .l21-btn, .l21-btn-hit, .l21-btn-stand, .coin-btn, .tv-choice, .std-card, .cc-card, .cc-swatch, .cc-draw-btn, .hss-card, .hss-response-card, .hss-judge-card, .hh-board-tool, .table-action-btn, .monog-board-action, .monog-portfolio-row, .monog-btn, .wordsg-btn, .wordsg-btn-alt, .wordsg-btn-danger)), input[type="submit"], input[type="button"], .btn, .btn-glow, a.button):hover,
html body.v6-mode:not(.page-discover) #main :where(button:not(:is(.ttt-cell, .c4-drop, .hm-letter, .db-h, .db-v, .mm-card, .gm-cell, .ch-cell, .ch-promo-btn, .ck-cell, .bg-point, .bg-bar-stack, .bg-off-box, .mc-pit, .rps-pick, .nim-btn, .ww-token, .oe-pick, .pig-btn-roll, .pig-btn-bank, .sticks-btn, .chop-hand, .chop-my-hand, .chop-opp-hand, .l21-btn, .l21-btn-hit, .l21-btn-stand, .coin-btn, .tv-choice, .std-card, .cc-card, .cc-swatch, .cc-draw-btn, .hss-card, .hss-response-card, .hss-judge-card, .hh-board-tool, .table-action-btn, .monog-board-action, .monog-portfolio-row, .monog-btn, .wordsg-btn, .wordsg-btn-alt, .wordsg-btn-danger)), input[type="submit"], input[type="button"], .btn, .btn-glow, a.button):focus-visible {
  border-color: var(--neon-green) !important;
  color: var(--neon-green) !important;
  outline: none !important;
}
html body.v6-mode:not(.page-discover) #main table {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  overflow: hidden !important;
}
html body.v6-mode:not(.page-discover) #main :where(th, td) {
  border-bottom: 1px solid var(--border-color) !important;
  padding: 0.75rem !important;
}
html body.v6-mode:not(.page-discover) #main :where(th) {
  color: var(--neon-green) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  font-size: 0.78rem !important;
}
html body.v6-mode:not(.page-discover) #main img,
html body.v6-mode:not(.page-discover) #main video,
html body.v6-mode:not(.page-discover) #main iframe {
  max-width: 100% !important;
}
@media (max-width: 640px) {
  html body.v6-mode:not(.page-discover) #main > .container {
    width: min(100%, calc(100vw - 20px)) !important;
    padding-top: 14px !important;
  }
  html body.v6-mode:not(.page-discover) #main :where(.discover-wrap, .faq-wrap, .faq-hero, .faq-section, .contact-card, .contact-panel, .settings-card, .profile-card, .card, .panel, .box, .well, .topav2, .topav3, .pleft3) {
    border-radius: 14px !important;
    padding: 14px !important;
  }
  html body.v6-mode:not(.page-discover) #main :where(table) {
    display: block !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
}

/* ---- V6 compatibility layer for legacy/V5 page content ---- */
html body.v6-mode:not(.page-discover) #main > .container > .wrapper {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 16px !important;
  line-height: 1.55 !important;
}
html body.v6-mode:not(.page-discover) #main > .container > .wrapper > :where(h1, h2, h3, h4, p, ul, ol, form, table, .discover-wrap, .search-page, .msg-shell, .streaming-settings-shell) {
  max-width: 100% !important;
}
html body.v6-mode:not(.page-discover) #main > .container > .wrapper > :where(h1:first-child, h2:first-child) {
  display: flex !important;
  align-items: center !important;
  gap: 0.6rem !important;
  margin: 0 0 1rem !important;
  padding: 1rem 1.1rem !important;
  background: var(--card-bg) !important;
  border: 2px solid var(--border-color) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--sh, 4px 4px 0 rgba(0,0,0,0.75)) !important;
}
html body.v6-mode:not(.page-discover) #main :where(.discover-bar, .search-hero, .uqc-listhead, .tm-hero, .msg-head, .streaming-settings-shell > header, .shop-head, .ach-head) {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 1rem !important;
  flex-wrap: wrap !important;
  padding: clamp(1rem, 2.4vw, 1.45rem) !important;
  margin: 0 0 1rem !important;
  background: var(--card-bg) !important;
  background-image: none !important;
  border: 2px solid var(--border-color) !important;
  border-radius: var(--radius) !important;
  color: var(--text) !important;
  box-shadow: var(--sh, 4px 4px 0 rgba(0,0,0,0.75)) !important;
}
html body.v6-mode:not(.page-discover) #main :where(.hero, .hero-section, .page-hero, .intro-banner, .banner-section) {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 1rem !important;
  flex-wrap: wrap !important;
  padding: clamp(1rem, 2.4vw, 1.45rem) !important;
  margin: 0 0 1rem !important;
  background: var(--card-bg) !important;
  background-image: none !important;
  border: 2px solid var(--border-color) !important;
  border-radius: var(--radius) !important;
  color: var(--text) !important;
  box-shadow: var(--sh, 4px 4px 0 rgba(0,0,0,0.75)) !important;
}
html body.v6-mode:not(.page-discover) #main :where(.discover-bar-title, .search-summary-title, .uqc-listhead-title, .tm-title, .msg-title, .shop-title, .ach-title) {
  margin: 0 !important;
  color: var(--text) !important;
  font-family: 'Space Grotesk', Inter, system-ui, sans-serif !important;
  font-size: clamp(1.45rem, 4vw, 2.35rem) !important;
  font-weight: 900 !important;
  letter-spacing: -0.045em !important;
  line-height: 1.02 !important;
}
html body.v6-mode:not(.page-discover) #main :where(.discover-bar-title i, .search-summary-title i, .uqc-listhead-title i, .tm-title i, .msg-title i, .shop-title i, .ach-title i) {
  color: var(--neon-green) !important;
}
html body.v6-mode:not(.page-discover) #main :where(.discover-section, .discover-section-head, .acct-card, .profile-card, .profile-about-block, .profile-bio, .profile-compare, .profile-arg-card, .profile-pin-card, .toy-card, .settings-card, .notify-card, .question-card, .uqc-state-card, .uqc-card-shell, .uqc-q-card, .uqc-results, .uqc-boost-panel, .uqc-match-preview, .uqc-next-q, .uqc-pitch, .uqc-closed-banner, .search-summary, .search-group, .search-empty, .ans-empty, .ans-empty-filtered, .tm-panel, .tm-drift-card, .tm-stat, .tm-person, .tm-side, .tm-bottom, .mq-question-card, .mq-empty, .msg-shell, .msg-side, .msg-thread, .msg-side-card, .msg-new-group-field, .msg-empty, .notif-row, .notif-empty, .pvp-coll, .pvp-statbox, .pvp-lobby-card, .pvp-pack-card, .pvp-picker-search-empty, .shop-card, .shop-section, .shop-cat, .shop-recent-cta, .ach-head-stat, .dc-card, .blocked-item, .blocked-empty, .streaming-settings-section, .streaming-settings-note, .streaming-settings-flash) {
  background: var(--card-bg) !important;
  background-image: none !important;
  border: 2px solid var(--border-color) !important;
  border-radius: var(--radius) !important;
  color: var(--text) !important;
  box-shadow: var(--sh, 4px 4px 0 rgba(0,0,0,0.75)) !important;
}
html body.v6-mode:not(.page-discover) #main :where(.discover-section, .acct-card, .profile-card, .profile-about-block, .profile-bio, .profile-compare, .profile-arg-card, .profile-pin-card, .settings-card, .notify-card, .question-card, .uqc-state-card, .uqc-q-card, .uqc-results, .uqc-boost-panel, .uqc-match-preview, .uqc-next-q, .uqc-pitch, .search-summary, .search-group, .tm-panel, .mq-question-card, .msg-shell, .msg-thread, .connect-tile, .shop-section, .shop-cat, .streaming-settings-section) {
  padding: clamp(1rem, 2.3vw, 1.35rem) !important;
  margin-bottom: 1rem !important;
}
html body.v6-mode:not(.page-discover) #main :where(.discover-section-head, .search-summary-head, .tm-panel-head, .shop-cat-h, .pvp-coll-title) {
  color: var(--text) !important;
  border-color: var(--border-color) !important;
}
html body.v6-mode:not(.page-discover) #main :where(.discover-section-sub, .profile-subheading, .profile-card-sub, .profile-compare-sub, .profile-pin-card-meta, .search-sub, .search-card-sub, .uqc-loc, .uqc-card-meta, .uqc-q-byline, .uqc-q-story, .uqc-q-meta, .uqc-q-meta-chip, .uqc-results-tot, .uqc-results-foot, .uqc-card-opts, .tm-sub, .tm-empty, .tm-bar-row, .tm-person-meta, .mq-meta, .mq-question-story, .msg-side-card-meta, .msg-side-card-body, .msg-empty, .notif-empty, .blocked-meta, .blocked-sub, .shop-sub, .shop-desc, .shop-info, .ach-head-stat-lbl, .dc-card-sub, .streaming-settings-note) {
  color: var(--text-dim) !important;
}
html body.v6-mode:not(.page-discover) #main :where(.acct-quicklinks, .profile-compare-head, .profile-explore, .profile-chips, .profile-pins-list, .profile-action-group, .notif-filter-tabs, .notif-toolbar, .notif-toolbar-actions, .search-summary-chips, .uqc-card-tools, .uqc-card-opts, .tm-tools, .tm-modes, .shop-action-row, .pvp-lobby-actions, .pvp-pack-actions, .msg-compose-actions, .connect-tile-actions, .streaming-settings-actions) {
  display: flex !important;
  align-items: center !important;
  gap: 0.55rem !important;
  flex-wrap: wrap !important;
}
html body.v6-mode:not(.page-discover) #main :where(.acct-quicklinks) {
  margin: 0 0 1rem !important;
  padding: 0.45rem !important;
  background: var(--card-bg) !important;
  border: 2px solid var(--border-color) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--sh, 4px 4px 0 rgba(0,0,0,0.75)) !important;
}
html body.v6-mode:not(.page-discover) #main :where(.acct-quicklink, .acct-profile-cta, .acct-save, .profile-action, .profile-chip, .profile-explore-btn, .profile-compare-chip, .profile-toy-sharelink, .toy-copy-btn, .ans-foot-btn, .ans-cmt-btn, .notif-filter-tab, .notif-toolbar-action, .search-go, .search-card-cta, .search-chip, .uqc-cta, .uqc-pitch-btn, .uqc-share-btn, .uqc-vote-btn, .uqc-card-pill, .uqc-boost-mini, .uqc-next-q-link, .uqc-boost-btn, .tm-tool, .tm-mode, .tm-viewtab, .tm-drift-clear, .mq-empty-cta, .connect-tile-act, .pvp-lobby-btn, .pvp-pack-btn, .pvpgf-pill, .pvp-pick-control, .discover-rate, .shop-btn, .profile-action-block, .streaming-settings-chip) {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.45rem !important;
  min-height: 44px !important;
  padding: 0.62rem 0.9rem !important;
  background: var(--bg) !important;
  background-image: none !important;
  border: 2px solid var(--border-color) !important;
  border-radius: 12px !important;
  color: var(--text) !important;
  box-shadow: none !important;
  font-weight: 900 !important;
  text-decoration: none !important;
  text-transform: uppercase !important;
  letter-spacing: 0.035em !important;
  line-height: 1.05 !important;
}
html body.v6-mode:not(.page-discover) #main :where(.acct-quicklink:hover, .acct-profile-cta:hover, .acct-save:hover, .profile-action:hover, .profile-chip:hover, .profile-explore-btn:hover, .profile-compare-chip:hover, .profile-toy-sharelink:hover, .toy-copy-btn:hover, .ans-foot-btn:hover, .ans-cmt-btn:hover, .notif-filter-tab:hover, .notif-toolbar-action:hover, .search-go:hover, .search-card-cta:hover, .search-chip:hover, .uqc-cta:hover, .uqc-pitch-btn:hover, .uqc-share-btn:hover, .uqc-vote-btn:hover, .uqc-next-q-link:hover, .uqc-boost-btn:hover, .tm-tool:hover, .tm-mode:hover, .tm-viewtab:hover, .mq-empty-cta:hover, .connect-tile-act:hover, .pvp-lobby-btn:hover, .pvp-pack-btn:hover, .pvpgf-pill:hover, .pvp-pick-control:hover, .discover-rate:hover, .shop-btn:hover, .profile-action-block:hover, .streaming-settings-chip:hover),
html body.v6-mode:not(.page-discover) #main :where(.acct-quicklink:focus-visible, .acct-profile-cta:focus-visible, .acct-save:focus-visible, .profile-action:focus-visible, .profile-chip:focus-visible, .profile-explore-btn:focus-visible, .profile-compare-chip:focus-visible, .profile-toy-sharelink:focus-visible, .toy-copy-btn:focus-visible, .ans-foot-btn:focus-visible, .ans-cmt-btn:focus-visible, .notif-filter-tab:focus-visible, .notif-toolbar-action:focus-visible, .search-go:focus-visible, .search-card-cta:focus-visible, .search-chip:focus-visible, .uqc-cta:focus-visible, .uqc-pitch-btn:focus-visible, .uqc-share-btn:focus-visible, .uqc-vote-btn:focus-visible, .uqc-next-q-link:focus-visible, .uqc-boost-btn:focus-visible, .tm-tool:focus-visible, .tm-mode:focus-visible, .tm-viewtab:focus-visible, .mq-empty-cta:focus-visible, .connect-tile-act:focus-visible, .pvp-lobby-btn:focus-visible, .pvp-pack-btn:focus-visible, .pvpgf-pill:focus-visible, .pvp-pick-control:focus-visible, .discover-rate:focus-visible, .shop-btn:focus-visible, .profile-action-block:focus-visible, .streaming-settings-chip:focus-visible) {
  border-color: var(--neon-green) !important;
  color: var(--neon-green) !important;
  outline: none !important;
}
html body.v6-mode:not(.page-discover) #main :where(.is-active, .active, [aria-current="page"], .equipped, .is-current, .is-on) {
  border-color: var(--neon-green) !important;
}
html body.v6-mode:not(.page-discover) #main :where(.acct-quicklink.is-active, .notif-filter-tab.is-active, .tm-mode.is-active, .tm-viewtab.is-active, .pvpgf-pill.is-active, .shop-btn.equipped, .streaming-settings-chip.is-active) {
  background: var(--neon-green) !important;
  color: var(--bg) !important;
}
html body.v6-mode:not(.page-discover) #main :where(.acct-quicklink.is-active i, .notif-filter-tab.is-active i, .tm-mode.is-active i, .tm-viewtab.is-active i, .pvpgf-pill.is-active i, .shop-btn.equipped i, .streaming-settings-chip.is-active i) {
  color: var(--bg) !important;
}
html body.v6-mode:not(.page-discover) #main :where(.profile-action-primary, .btn.primary, .btn-glow.primary, .search-go, .uqc-cta, .uqc-next-q-link, .uqc-boost-btn, .shop-btn:not(.locked), .pvp-lobby-btn:not(.is-secondary)) {
  border-color: var(--neon-green) !important;
  color: var(--neon-green) !important;
}
html body.v6-mode:not(.page-discover) #main :where(.profile-action-secondary, .btn.secondary, .btn-glow.secondary, .pvp-lobby-btn.is-secondary, .shop-btn.locked) {
  border-color: var(--border-color) !important;
  color: var(--text-dim) !important;
}
html body.v6-mode:not(.page-discover) #main :where(.profile-toy-share) {
  display: block !important;
  overflow: hidden !important;
}
html body.v6-mode:not(.page-discover) #main :where(.profile-toy-share > *, .profile-compare-chiprow) {
  max-width: 100% !important;
}
html body.v6-mode:not(.page-discover) #main :where(.profile-toy-share [style*="display:flex"]) {
  min-width: 0 !important;
}
html body.v6-mode:not(.page-discover) #main :where(.profile-compare-chiprow) {
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch !important;
}
html body.v6-mode:not(.page-discover) #main :where(.search-group-grid, .search-summary-chips, .uqc-cards, .tm-grid, .tm-people, .shop-grid, .streaming-settings-grid, .blocked-list, .dc-grid) {
  display: grid !important;
  gap: 1rem !important;
}
html body.v6-mode:not(.page-discover) #main :where(.search-group-grid, .shop-grid, .streaming-settings-grid, .dc-grid) {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
}
html body.v6-mode:not(.page-discover) #main :where(.uqc-cards, .tm-grid, .tm-people, .blocked-list) {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
}
/* NOTE: do NOT add .msg-row here. It is a chat/message row (avatar + bubble),
   not a standalone card. The overflow:hidden below triggered a WebKit/Chromium
   compositing bug inside the .msg-thread-body scroller that dropped bubble text
   paint (empty bubbles). Message rows are styled by the .page-messages rules. */
html body.v6-mode:not(.page-discover) #main :where(.search-card, .ans-card, .uqc-card-shell, .uqc-q-open, .uqc-bar, .tm-catrow, .mq-answer-line, .notif-row, .connect-tile, .blocked-item, .shop-card, .dc-card, .toy-card) {
  background: var(--card-bg) !important;
  background-image: none !important;
  border: 2px solid var(--border-color) !important;
  border-radius: var(--radius) !important;
  color: var(--text) !important;
  box-shadow: var(--sh, 4px 4px 0 rgba(0,0,0,0.75)) !important;
  overflow: hidden !important;
}
html body.v6-mode:not(.page-discover) #main :where(.search-card:hover, .uqc-card-shell:hover, .tm-catrow:hover, .msg-side-card:hover, .notif-row:hover, .connect-tile:hover, .blocked-item:hover, .shop-card:hover, .dc-card:hover, .toy-card:hover) {
  border-color: var(--neon-blue) !important;
  box-shadow: 6px 6px 0 var(--neon-blue) !important;
}
html body.v6-mode:not(.page-discover) #main :where(.search-card-media, .profile-avatar, .connect-tile-avatar, .msg-avatar, .blocked-avatar, .notif-icon, .shop-preview, .dc-card-icon, .toy-card-icon, .uqc-listhead-avatar, .uqc-q-byline-av) {
  background: var(--bg) !important;
  border: 2px solid var(--border-color) !important;
  border-radius: 14px !important;
  color: var(--neon-green) !important;
}
html body.v6-mode:not(.page-discover) #main :where(.search-card-media img, .profile-avatar img, .connect-tile-avatar img, .msg-avatar img, .blocked-avatar img, .notif-icon img, .shop-preview img) {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}
html body.v6-mode:not(.page-discover) #main :where(.search-card-name, .profile-card h2, .profile-card h3, .toy-card-title, .uqc-card-q, .uqc-q-text, .uqc-q-pill, .uqc-bar-label, .tm-person-name, .mq-question-text, .msg-side-card-name, .blocked-name, .shop-label, .dc-card-h, .ach-head-stat-num) {
  color: var(--text) !important;
  font-weight: 900 !important;
}
html body.v6-mode:not(.page-discover) #main :where(.search-card-tag, .search-chip-count, .uqc-card-pill, .uqc-q-meta-chip, .tm-drift-dot, .tm-bar > span, .mq-answer-tag, .shop-price, .shop-rar, .dc-progress-bar > span, .toy-badge, .profile-badge, .notif-badge, .msg-event-tag, .pvp-mode-pill) {
  background: var(--neon-green) !important;
  color: var(--bg) !important;
  border-color: var(--neon-green) !important;
}
html body.v6-mode:not(.page-discover) #main .notif-row.is-unread::before {
  background: var(--neon-green) !important;
  box-shadow: 0 0 12px rgba(var(--ng-rgb),0.55) !important;
}
html body.v6-mode:not(.page-discover) #main :where(.ans-current-value, .mq-answer-value, .connect-tile-pct, .tm-stat strong, .shop-price, .ach-head-stat-num) {
  color: var(--neon-green) !important;
}
html body.v6-mode:not(.page-discover) #main :where(.auth-alert, .acct-field-err, .uqc-boost-flash, .is-success, .is-ok, .is-error, .streaming-settings-flash) {
  border: 2px solid var(--border-color) !important;
  border-radius: 12px !important;
  background: var(--card-bg) !important;
  color: var(--text) !important;
  padding: 0.75rem 0.9rem !important;
}
html body.v6-mode:not(.page-discover) #main :where(.is-success, .is-ok, .auth-alert.is-success, .streaming-settings-flash.is-success) {
  border-color: var(--neon-green) !important;
  color: var(--neon-green) !important;
}
html body.v6-mode:not(.page-discover) #main :where(.is-danger, .is-error, .acct-field-err, .uqc-state-error, .shop-btn.locked) {
  border-color: var(--neon-orange) !important;
  color: var(--neon-orange) !important;
}
html body.v6-mode:not(.page-discover) #main :where(.msg-shell) {
  display: grid !important;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr) !important;
  gap: 1rem !important;
}
html body.v6-mode:not(.page-discover) #main :where(.msg-side-list, .notif-list) {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
html body.v6-mode:not(.page-discover) #main :where(.notif-row) {
  padding: 0.8rem !important;
  margin-bottom: 0.65rem !important;
}
html body.v6-mode:not(.page-discover) #main :where(.msg-row.is-mine, .notif-row.is-unread) {
  border-color: var(--neon-blue) !important;
}
html body.v6-mode:not(.page-discover) #main :where(.msg-compose, .msg-new-group-field) {
  background: var(--card-bg) !important;
  border: 2px solid var(--border-color) !important;
  border-radius: var(--radius) !important;
  padding: 0.75rem !important;
}
html body.v6-mode:not(.page-discover) #main :where(.uqc-results, .uqc-vote, .uqc-answer-label) {
  background: var(--bg) !important;
  border: 2px solid var(--border-color) !important;
  border-radius: 12px !important;
  color: var(--text) !important;
}
html body.v6-mode:not(.page-discover) #main :where(.uqc-q-card) {
  border-color: var(--neon-green) !important;
}
html body.v6-mode:not(.page-discover) #main :where(.uqc-q-open, .uqc-match-preview, .uqc-next-q) {
  box-shadow: none !important;
}
html body.v6-mode:not(.page-discover) #main :where(.uqc-vote-btn, .uqc-answer-label) {
  width: 100% !important;
  justify-content: flex-start !important;
}
html body.v6-mode:not(.page-discover) #main :where(.uqc-vote-key) {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 8px !important;
  border: 2px solid var(--border-color) !important;
  color: var(--text-dim) !important;
}
html body.v6-mode:not(.page-discover) #main :where(.tm-bar, .dc-progress-bar, .v6-progress, .v6-result-bar) {
  background: rgba(255,255,255,0.08) !important;
  border-radius: 999px !important;
  overflow: hidden !important;
}
html body.v6-mode:not(.page-discover) #main :where(.uqc-bar-track) {
  height: 12px !important;
  background: rgba(255,255,255,0.08) !important;
  border: 2px solid var(--border-color) !important;
  border-radius: 999px !important;
  overflow: hidden !important;
}
html body.v6-mode:not(.page-discover) #main :where(.uqc-bar-fill) {
  height: 100% !important;
  background: var(--neon-green) !important;
  border-radius: 999px !important;
}
html body.v6-mode:not(.page-discover) #main :where(.uqc-bar.is-yours .uqc-bar-fill) {
  background: var(--neon-blue) !important;
}
html body.v6-mode:not(.page-discover) #main :where(.uqc-bar.is-yours .uqc-bar-label::after) {
  color: var(--neon-blue) !important;
}
html body.v6-mode:not(.page-discover) #main :where(.tm-bar > span, .dc-progress-bar > span) {
  display: block !important;
  height: 100% !important;
  min-height: 8px !important;
}
html body.v6-mode:not(.page-discover) #main :where(.shop-card.locked, .shop-btn.locked, .is-removed, .ans-pager-disabled, .pvp-lobby-btn.is-disabled) {
  opacity: 0.62 !important;
}
html body.v6-mode:not(.page-discover) #main :where(.modal, .weird-fb-card, .weird-tip-card, .acct-quickmore-menu, .msg-context-menu, .pvp-popover) {
  background: var(--card-bg) !important;
  border: 2px solid var(--border-color) !important;
  border-radius: var(--radius) !important;
  color: var(--text) !important;
  box-shadow: var(--sh, 8px 8px 0 rgba(0,0,0,0.85)) !important;
}
html body.v6-mode:not(.page-discover) #main :where(.table-responsive, .ans-list, .msg-thread-list) {
  max-width: 100% !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
}
html body.v6-mode:not(.page-discover) #main :where(.search-empty, .ans-empty, .ans-empty-filtered, .mq-empty, .msg-empty, .notif-empty, .blocked-empty, .pvp-picker-search-empty) {
  padding: clamp(1.25rem, 4vw, 2rem) !important;
  text-align: center !important;
  border-style: dashed !important;
}
html body.v6-mode:not(.page-discover) #main :where(hr) {
  border: 0 !important;
  border-top: 2px solid var(--border-color) !important;
  margin: 1.2rem 0 !important;
}
html body.v6-mode:not(.page-discover) #main :where(code, pre) {
  background: #000 !important;
  color: var(--neon-green) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 10px !important;
}
html body.v6-mode:not(.page-discover) #main :where(pre) {
  padding: 1rem !important;
  overflow: auto !important;
}
@media (max-width: 820px) {
  html body.v6-mode:not(.page-discover) #main :where(.msg-shell) {
    grid-template-columns: 1fr !important;
  }
  html body.v6-mode:not(.page-discover) #main :where(.discover-bar, .search-hero, .uqc-listhead, .tm-hero, .msg-head, .streaming-settings-shell > header, .shop-head, .ach-head) {
    align-items: stretch !important;
  }
}
@media (max-width: 640px) {
  html body.v6-mode:not(.page-discover) #main > .container > .wrapper {
    font-size: 15px !important;
  }
  html body.v6-mode:not(.page-discover) #main :where(.acct-quicklinks, .notif-filter-tabs, .search-summary-chips, .uqc-card-tools, .tm-tools, .tm-modes, .shop-action-row, .pvp-lobby-actions, .pvp-pack-actions, .streaming-settings-actions) {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
  }
  html body.v6-mode:not(.page-discover) #main :where(.acct-quicklink, .acct-profile-cta, .acct-save, .profile-action, .notif-filter-tab, .notif-toolbar-action, .search-go, .search-card-cta, .search-chip, .uqc-cta, .uqc-pitch-btn, .uqc-share-btn, .tm-tool, .tm-mode, .tm-viewtab, .mq-empty-cta, .pvp-lobby-btn, .pvp-pack-btn, .pvpgf-pill, .discover-rate, .shop-btn, .streaming-settings-chip) {
    width: 100% !important;
    min-width: 0 !important;
  }
  html body.v6-mode:not(.page-discover) #main :where(.search-group-grid, .uqc-cards, .tm-grid, .tm-people, .shop-grid, .streaming-settings-grid, .blocked-list, .dc-grid) {
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 380px) {
  html body.v6-mode:not(.page-discover) #main :where(.acct-quicklinks, .notif-filter-tabs, .search-summary-chips, .uqc-card-tools, .tm-tools, .tm-modes, .shop-action-row, .pvp-lobby-actions, .pvp-pack-actions, .streaming-settings-actions) {
    grid-template-columns: 1fr !important;
  }
}

/* ---- Compact critical footer in V6 ---- */
html body.v6-mode footer.weird-native-footer {
  display: block !important;
  margin: 0 !important;
  padding: 28px 0 calc(30px + env(safe-area-inset-bottom, 0px)) !important;
  background: linear-gradient(180deg, rgba(var(--bg-rgb),0.88), #050505) !important;
  background-image: radial-gradient(var(--dot,#222) 1px, transparent 1px), linear-gradient(180deg, rgba(var(--bg-rgb),0.88), #050505) !important;
  background-size: 24px 24px, auto !important;
  border-top: 2px solid var(--border-color) !important;
  color: var(--text) !important;
}
html body.v6-mode .weird-footer-shell {
  width: min(1180px, calc(100vw - 24px)) !important;
  gap: 14px !important;
}
html body.v6-mode .weird-footer-brand-copy strong {
  color: var(--text) !important;
  text-transform: uppercase !important;
  letter-spacing: -0.02em !important;
}
html body.v6-mode .weird-footer-brand-copy small,
html body.v6-mode .weird-footer-bottom {
  color: var(--text-dim) !important;
}
html body.v6-mode .weird-footer-critical a {
  border: 2px solid var(--border-color) !important;
  background: var(--card-bg) !important;
  color: var(--text) !important;
  box-shadow: var(--sh, 2px 2px 0 rgba(0,0,0,0.75)) !important;
}
html body.v6-mode .weird-footer-critical a:hover,
html body.v6-mode .weird-footer-critical a:focus-visible {
  border-color: var(--neon-green) !important;
  color: var(--neon-green) !important;
  background: #000 !important;
}
html body.v6-mode .weird-footer-dot {
  background: var(--border-color) !important;
}

/* ---- Explore page (v6-mode): category hub tiles + header ---- */
html body.v6-mode .explore-hub-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)) !important;
  gap: 1.2rem !important;
}
/* Explore tile category color = canonical (matches stream + nav dropdown). */
html body.v6-mode a.explore-hub-card { --cat-color: var(--neon-green); }
html body.v6-mode a.explore-hub-card[data-cat="movies"] { --cat-color: var(--cat-movies); }
html body.v6-mode a.explore-hub-card[data-cat="tv"] { --cat-color: var(--cat-tv); }
html body.v6-mode a.explore-hub-card[data-cat="music"] { --cat-color: var(--cat-music); }
html body.v6-mode a.explore-hub-card[data-cat="books"] { --cat-color: var(--cat-books); }
html body.v6-mode a.explore-hub-card[data-cat="podcasts"] { --cat-color: var(--cat-podcasts); }
html body.v6-mode a.explore-hub-card[data-cat="videos"] { --cat-color: var(--cat-videos); }
html body.v6-mode a.explore-hub-card[data-cat="facts"] { --cat-color: var(--cat-facts); }
html body.v6-mode a.explore-hub-card[data-cat="jokes"] { --cat-color: var(--cat-jokes); }
html body.v6-mode a.explore-hub-card[data-cat="lifehacks"] { --cat-color: var(--cat-lifehacks); }
html body.v6-mode a.explore-hub-card[data-cat="memes"] { --cat-color: var(--cat-memes); }
html body.v6-mode a.explore-hub-card[data-cat="local"] { --cat-color: var(--cat-local); }
html body.v6-mode a.explore-hub-card[data-cat="travel"] { --cat-color: var(--cat-travel); }
html body.v6-mode a.explore-hub-card[data-cat="place"] { --cat-color: var(--cat-place); }
html body.v6-mode a.explore-hub-card[data-cat="shopping"] { --cat-color: var(--cat-shopping); }
html body.v6-mode a.explore-hub-card[data-cat="webcontent"] { --cat-color: var(--cat-webcontent); }
html body.v6-mode a.explore-hub-card[data-cat="boardgames"] { --cat-color: var(--cat-shopping); }
html body.v6-mode a.explore-hub-card[data-cat="videogames"] { --cat-color: var(--cat-videogames); }
html body.v6-mode a.explore-hub-card[data-cat="sports"] { --cat-color: var(--cat-sports); }
html body.v6-mode .explore-hub-card {
  background: var(--card-bg) !important;
  border: 2px solid var(--border-color) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--sh, 4px 4px 0 rgba(0,0,0,0.75)) !important;
  overflow: hidden !important;
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease !important;
}
html body.v6-mode .explore-hub-card:hover {
  transform: translate(-3px,-3px) !important;
  border-color: var(--cat-color, var(--neon-blue)) !important;
  box-shadow: 7px 7px 0 var(--cat-color, var(--neon-blue)) !important;
}
/* V6 audit polish — keyboard focus + mobile tap feedback for category cards. */
html body.v6-mode .explore-hub-card:active {
  transform: translate(-1px,-1px) !important;
  border-color: var(--cat-color, var(--neon-blue)) !important;
}
html body.v6-mode .explore-hub-card:focus-visible {
  outline: 3px solid var(--cat-color, var(--neon-blue)) !important;
  outline-offset: 3px !important;
  border-color: var(--cat-color, var(--neon-blue)) !important;
}
html body.v6-mode .explore-hub-media {
  border-radius: 0 !important;
  border-bottom: 2px solid var(--border-color) !important;
  background: var(--bg) !important;
  background-image: none !important;
}
html body.v6-mode .explore-hub-icon,
html body.v6-mode .explore-hub-icon i,
html body.v6-mode .explore-hub-media i { color: var(--cat-color, var(--neon-blue)) !important; }
html body.v6-mode .explore-hub-copy { background: var(--card-bg) !important; }
html body.v6-mode .explore-hub-copy h3,
html body.v6-mode .explore-hub-card h3 {
  color: var(--text) !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  letter-spacing: -0.01em !important;
}
html body.v6-mode .explore-hub-copy p { color: var(--text-dim) !important; }
html body.v6-mode .explore-hub-arrow {
  color: var(--cat-color, var(--neon-blue)) !important;
  border: 2px solid var(--border-color) !important;
  background: var(--bg) !important;
}
html body.v6-mode .explore-hub-card .discover-card-tag {
  background: var(--cat-color, var(--neon-blue)) !important;
  background-image: none !important;
  color: #000 !important;
  border-color: var(--cat-color, var(--neon-blue)) !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
}
html body.v6-mode .explore-hub-card .discover-card-tag i { color: #000 !important; }
html body.v6-mode .explore-hub-action,
html body.v6-mode a.explore-hub-action {
  background: var(--bg) !important;
  border: 2px solid var(--neon-blue) !important;
  color: var(--neon-blue) !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  background-image: none !important;
  min-height: 44px !important;
  touch-action: manipulation !important;
}

/* ---- Connect page (v6-mode): people tiles + filters (purple/match accent) ---- */
html body.v6-mode .connect-modetab {
  background: var(--card-bg) !important;
  border: 2px solid var(--border-color) !important;
  border-radius: 14px !important;
  color: var(--text) !important;
  box-shadow: none !important;
  background-image: none !important;
}
html body.v6-mode .connect-modetab.is-active,
html body.v6-mode .connect-modetab.active,
html body.v6-mode .connect-modetab[aria-selected="true"] {
  border-color: var(--neon-pink) !important;
  color: var(--text) !important;
}
html body.v6-mode .connect-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
  gap: 1.1rem !important;
}
html body.v6-mode .connect-tile {
  background: var(--card-bg) !important;
  border: 2px solid var(--border-color) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--sh, 4px 4px 0 rgba(0,0,0,0.75)) !important;
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease !important;
}
html body.v6-mode .connect-tile:hover {
  transform: translate(-3px,-3px) !important;
  border-color: var(--neon-pink) !important;
  box-shadow: 7px 7px 0 var(--neon-pink) !important;
}
html body.v6-mode .connect-tile-name { color: var(--text) !important; font-weight: 900 !important; }
html body.v6-mode .connect-tile-avatar { border-color: var(--neon-pink) !important; }
html body.v6-mode .connect-tile-match,
html body.v6-mode .connect-tile-match-label,
html body.v6-mode .connect-tile-match-twin,
html body.v6-mode .connect-tile-taste-tag { color: var(--neon-pink) !important; }
html body.v6-mode .connect-tile-act,
html body.v6-mode .connect-tile-more {
  background: var(--bg) !important;
  border: 2px solid var(--border-color) !important;
  color: var(--text) !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  background-image: none !important;
}
html body.v6-mode .connect-tile-act:hover,
html body.v6-mode .connect-tile-more:hover {
  border-color: var(--neon-pink) !important;
  color: var(--neon-pink) !important;
}
html body.v6-mode .subpage-pillrow-filter a,
html body.v6-mode .subpage-pillrow-filter button,
html body.v6-mode .connect-interest-filter {
  background: var(--card-bg) !important;
  border: 2px solid var(--border-color) !important;
  color: var(--text) !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  background-image: none !important;
}
html body.v6-mode .subpage-pillrow-filter a.is-active,
html body.v6-mode .subpage-pillrow-filter a.active,
html body.v6-mode .subpage-pillrow-filter .is-active {
  background: var(--neon-pink) !important;
  color: var(--bg) !important;
  border-color: var(--neon-pink) !important;
}

/* ---- Kill legacy V5 chrome that clutters the V6 feed ---- */
html body.page-discover #home,
html body.page-discover #main .slider-area,
html body.page-discover #main .discover-greet,
html body.page-discover #main .discover-greet-combined,
html body.page-discover #main .discover-greet-guest,
html body.page-discover #main .discover-greet-pops,
html body.page-discover #main .discover-signal-strip,
html body.page-discover #main .discover-hero,
html body.page-discover #main .discover-today-grid,
html body.page-discover #main .discover-pillrow,
html body.page-discover #main .discover-wrap-stream-controls,
html body.page-discover #main .saved-reminder-checklist,
html body.page-discover #main .discover-wrap-stream .discover-section > .discover-section-head,
html body.page-discover .vb-foot,
html body.page-discover .vb-head,
html body.page-discover .vb-tabs,
html body.page-discover .weird-tabbar,
html body.page-discover #main-menu,
html body.page-discover .header-area {
  display: none !important;
}

/* =========================================================================
   Inline QUIZ CARD (restored) — the prominent "keep answering + earn coins +
   progress" widget. It lives INSIDE .discover-briefing; the greeting and
   signal-strip siblings stay hidden via their own inline display:none, so we
   just neutralize the briefing's rainbow gradient wrapper and reskin the quiz
   card flat brutalist V6. The daily-question "Answer" link (#discover-quiz)
   now resolves to a real, visible target again.
   ========================================================================= */
html body.page-discover #main .discover-briefing {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 0 1.5rem 0 !important;
  box-shadow: none !important;
}
html body.page-discover #main .discover-briefing::before,
html body.page-discover #main .discover-briefing::after {
  content: none !important;
  display: none !important;
  background: none !important;
}
html body.page-discover #main #discover-quiz.discover-quiz-wrap {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
}
html body.page-discover #main #discover-quiz .discover-quiz-card {
  background: var(--card-bg) !important;
  border: 2px solid var(--neon-green) !important;
  border-radius: var(--radius) !important;
  padding: 1.4rem !important;
  box-shadow: var(--sh, 4px 4px 0 rgba(0,0,0,0.75)) !important;
}
html body.page-discover #main #discover-quiz .discover-quiz-head {
  display: flex !important;
  align-items: center !important;
  gap: 0.55rem !important;
  flex-wrap: wrap !important;
  margin-bottom: 1rem !important;
}
html body.page-discover #main #discover-quiz .discover-quiz-badge {
  background: var(--neon-green) !important;
  color: var(--bg) !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 0.4rem 0.75rem !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.05em !important;
}
html body.page-discover #main #discover-quiz .discover-quiz-badge i { color: var(--bg) !important; }
html body.page-discover #main #discover-quiz .discover-quiz-progress { flex: 1 1 auto !important; min-width: 0 !important; }
html body.page-discover #main #discover-quiz .discover-quiz-progress-label { color: var(--text-dim) !important; font-weight: 700 !important; }
html body.page-discover #main #discover-quiz .discover-quiz-progress-label strong { color: var(--text) !important; }
html body.page-discover #main #discover-quiz .discover-quiz-progress-bar {
  background: rgba(255,255,255,0.08) !important;
  border-radius: 999px !important;
  overflow: hidden !important;
}
html body.page-discover #main #discover-quiz .discover-quiz-progress-bar span { background: var(--neon-green) !important; }
html body.page-discover #main #discover-quiz .discover-quiz-coins {
  color: var(--neon-green) !important;
  font-weight: 900 !important;
  background: transparent !important;
  border: 2px solid var(--border-color) !important;
  border-radius: 10px !important;
  padding: 0.3rem 0.6rem !important;
}
html body.page-discover #main #discover-quiz .discover-quiz-coins .discover-quiz-earn { color: var(--neon-green) !important; }
html body.page-discover #main #discover-quiz .discover-quiz-skip,
html body.page-discover #main #discover-quiz .discover-quiz-toggle {
  background: transparent !important;
  border: 2px solid var(--border-color) !important;
  color: var(--text-dim) !important;
  border-radius: 10px !important;
  min-height: 36px !important;
  padding: 0.3rem 0.7rem !important;
  font-weight: 800 !important;
  cursor: pointer !important;
}
html body.page-discover #main #discover-quiz .discover-quiz-skip:hover,
html body.page-discover #main #discover-quiz .discover-quiz-toggle:hover {
  border-color: var(--text) !important;
  color: var(--text) !important;
}
html body.page-discover #main #discover-quiz .discover-quiz-story { color: var(--text-dim) !important; }
html body.page-discover #main #discover-quiz .discover-quiz-text {
  font-size: 1.5rem !important;
  font-weight: 800 !important;
  color: var(--text) !important;
  line-height: 1.25 !important;
  letter-spacing: -0.01em !important;
  margin: 0.4rem 0 1rem 0 !important;
}
html body.page-discover #main #discover-quiz .discover-quiz-creator { color: var(--text-dim) !important; }
html body.page-discover #main #discover-quiz .discover-quiz-creator-link { color: var(--neon-blue) !important; }
html body.page-discover #main #discover-quiz .discover-quiz-options { margin-bottom: 0.5rem !important; }
html body.page-discover #main #discover-quiz .discover-quiz-opt {
  display: block !important;
  width: 100% !important;
  grid-area: auto !important;
  background: var(--bg) !important;
  color: var(--text) !important;
  border: 2px solid var(--border-color) !important;
  border-radius: 12px !important;
  padding: 0.9rem 1rem !important;
  margin: 0 0 0.6rem 0 !important;
  font-weight: 800 !important;
  font-size: 1rem !important;
  text-align: center !important;
  cursor: pointer !important;
  min-height: 48px !important;
  transition: border-color 0.12s, background 0.12s, color 0.12s, transform 0.08s !important;
}
html body.page-discover #main #discover-quiz .discover-quiz-opt:hover {
  border-color: var(--neon-green) !important;
  color: var(--neon-green) !important;
}
html body.page-discover #main #discover-quiz .discover-quiz-opt:active { transform: translate(1px,1px) !important; }
html body.page-discover #main #discover-quiz .discover-quiz-opt-tile {
  display: inline-flex !important;
  width: auto !important;
}
html body.page-discover #main #discover-quiz .discover-quiz-toggle i,
html body.page-discover #main #discover-quiz .discover-quiz-skip i { color: inherit !important; }

/* ---- Flatten the V5 "drift"/navy answer layout to a clean V6 stack ----
   Drift-eligible 2-option questions render with a navy gradient box +
   side-by-side grid (question left, options right). That reads as the old
   experience against the flat-black V6 page. Force a single-column stack:
   bold question on top, full-width option buttons below, no navy chrome.
   Tapping still submits (onclick is unchanged); the top Skip button remains. */
html body.page-discover #main #discover-quiz .discover-quiz-answer-surface {
  display: block !important;
  grid-template-columns: none !important;
  background: transparent !important;
  background-image: none !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  gap: 0 !important;
  min-height: 0 !important;
}
html body.page-discover #main #discover-quiz .discover-quiz-answer-surface::before,
html body.page-discover #main #discover-quiz .discover-quiz-answer-surface::after {
  content: none !important;
  display: none !important;
  background: none !important;
}
html body.page-discover #main #discover-quiz .discover-quiz-text {
  background: transparent !important;
  background-image: none !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 0 1.1rem 0 !important;
}
html body.page-discover #main #discover-quiz .discover-quiz-options {
  display: block !important;
  grid-template-columns: none !important;
  grid-template-areas: none !important;
  min-height: 0 !important;
  margin-bottom: 0.4rem !important;
}
html body.page-discover #main #discover-quiz .discover-quiz-options::before,
html body.page-discover #main #discover-quiz .discover-quiz-options::after {
  content: none !important;
  display: none !important;
}
html body.page-discover #main #discover-quiz .discover-quiz-drift-skip {
  display: none !important;
}
/* Kill the ← / → swipe-direction arrows on the option buttons (tap-only now). */
html body.page-discover #main #discover-quiz .discover-quiz-opt::before,
html body.page-discover #main #discover-quiz .discover-quiz-opt::after {
  content: none !important;
  display: none !important;
}
/* Keep the A/B key chip as a subtle leading badge, tick hidden until chosen. */
html body.page-discover #main #discover-quiz .discover-quiz-opt .dqo-key {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 22px !important;
  height: 22px !important;
  margin-right: 0.5rem !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 6px !important;
  color: var(--text-dim) !important;
  font-size: 0.7rem !important;
  font-weight: 900 !important;
}

/* ---- Stream filter pills (restored: Taste Twins / Vibe / Wild / Opposites /
   Following / All + circle picker). The row is wired via _discover_audience.php;
   here we re-skin it flat brutalist V6 and out-specify discover.php's inline
   `.discover-wrap-signal-board .discover-audience-pill` (0,3,0) rules. */
html body.page-discover #main .discover-audience,
html body.page-discover .discover-wrap-signal-board .discover-audience {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 0.5rem !important;
  margin: 0 0 1.5rem 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
}
html body.page-discover #main .discover-audience::before,
html body.page-discover .discover-wrap-signal-board .discover-audience::before {
  content: none !important;
}
html body.page-discover #main .discover-audience-pill,
html body.page-discover .discover-wrap-signal-board .discover-audience-pill,
html body.page-discover .discover-wrap-signal-board .cf-wrap .discover-audience-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.4rem !important;
  background: var(--card-bg) !important;
  color: var(--text) !important;
  border: 2px solid var(--border-color) !important;
  border-radius: 12px !important;
  padding: 0.55rem 1rem !important;
  min-height: 40px !important;
  font-size: 0.82rem !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.03em !important;
  box-shadow: none !important;
  transition: transform 0.08s ease, border-color 0.12s, background 0.12s, color 0.12s !important;
}
html body.page-discover #main .discover-audience-pill i,
html body.page-discover .discover-wrap-signal-board .discover-audience-pill i {
  color: var(--text-dim) !important;
  font-size: 0.8rem !important;
}
html body.page-discover #main .discover-audience-pill:hover,
html body.page-discover .discover-wrap-signal-board .discover-audience-pill:hover {
  border-color: var(--text) !important;
  color: var(--text) !important;
  background: var(--card-bg) !important;
  transform: translateY(-1px) !important;
}
html body.page-discover #main .discover-audience-pill.active,
html body.page-discover .discover-wrap-signal-board .discover-audience-pill.active,
html body.page-discover .discover-wrap-signal-board .cf-wrap .discover-audience-pill.active {
  background: var(--neon-green) !important;
  color: var(--bg) !important;
  border-color: var(--neon-green) !important;
  box-shadow: none !important;
}
html body.page-discover #main .discover-audience-pill.active i,
html body.page-discover .discover-wrap-signal-board .discover-audience-pill.active i {
  color: var(--bg) !important;
}
/* Info "why" button + panel — flat V6 */
html body.page-discover #main .discover-audience-info summary {
  background: var(--card-bg) !important;
  border: 2px solid var(--border-color) !important;
  color: var(--text-dim) !important;
}
html body.page-discover #main .discover-audience-info[open] summary,
html body.page-discover #main .discover-audience-info summary:hover {
  border-color: var(--neon-green) !important;
  color: var(--neon-green) !important;
  background: var(--card-bg) !important;
}
html body.page-discover #main .discover-audience-info-panel {
  background: var(--card-bg) !important;
  border: 2px solid var(--border-color) !important;
  color: var(--text) !important;
}
@media (max-width: 560px) {
  html body.page-discover #main .discover-audience,
  html body.page-discover .discover-wrap-signal-board .discover-audience {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: none !important;
    gap: 0.5rem !important;
    padding-bottom: 0.15rem !important;
  }
  html body.page-discover #main .discover-audience::-webkit-scrollbar,
  html body.page-discover .discover-wrap-signal-board .discover-audience::-webkit-scrollbar { display: none !important; }
  html body.page-discover #main .discover-audience-pill,
  html body.page-discover .discover-wrap-signal-board .discover-audience-pill,
  html body.page-discover .discover-wrap-signal-board .cf-wrap .discover-audience-pill {
    width: auto !important;
    flex: 0 0 auto !important;
    min-width: 106px !important;
    justify-content: center !important;
    padding: 0.55rem 0.55rem !important;
    font-size: 0.76rem !important;
  }
  html body.page-discover #main .discover-audience-info {
    min-width: 0 !important;
    flex: 0 0 auto !important;
  }
  html body.page-discover #main .discover-audience-info summary {
    width: auto !important;
    min-width: 92px !important;
    min-height: 40px !important;
    border-radius: 12px !important;
  }
}
@media (max-width: 340px) {
  html body.page-discover #main .discover-audience-pill,
  html body.page-discover .discover-wrap-signal-board .discover-audience-pill,
  html body.page-discover .discover-wrap-signal-board .cf-wrap .discover-audience-pill {
    gap: 0.3rem !important;
    padding-left: 0.35rem !important;
    padding-right: 0.35rem !important;
    font-size: 0 !important;
    min-width: 88px !important;
  }
  html body.page-discover #main .discover-audience-pill i,
  html body.page-discover .discover-wrap-signal-board .discover-audience-pill i {
    font-size: 0.88rem !important;
  }
  html body.page-discover #main .discover-audience-pill::after,
  html body.page-discover .discover-wrap-signal-board .discover-audience-pill::after {
    font-size: 0.68rem !important;
    font-weight: 900 !important;
    letter-spacing: 0.03em !important;
  }
  html body.page-discover #main .discover-audience-pill[href*="f=top"]::after,
  html body.page-discover .discover-wrap-signal-board .discover-audience-pill[href*="f=top"]::after { content: "TWINS" !important; }
  html body.page-discover #main .discover-audience-pill[href*="f=vibe"]::after,
  html body.page-discover .discover-wrap-signal-board .discover-audience-pill[href*="f=vibe"]::after { content: "VIBE" !important; }
  html body.page-discover #main .discover-audience-pill[href*="f=wild"]::after,
  html body.page-discover .discover-wrap-signal-board .discover-audience-pill[href*="f=wild"]::after { content: "WILD" !important; }
  html body.page-discover #main .discover-audience-pill[href*="f=bot"]::after,
  html body.page-discover .discover-wrap-signal-board .discover-audience-pill[href*="f=bot"]::after { content: "OPP" !important; }
  html body.page-discover #main .discover-audience-pill[href*="f=follow"]::after,
  html body.page-discover .discover-wrap-signal-board .discover-audience-pill[href*="f=follow"]::after { content: "FOLLOW" !important; }
  html body.page-discover #main .cf-wrap .discover-audience-pill::after,
  html body.page-discover .discover-wrap-signal-board .cf-wrap .discover-audience-pill::after { content: "CIRC" !important; }
  html body.page-discover #main .discover-audience-pill[href="?tab=stream"]::after,
  html body.page-discover .discover-wrap-signal-board .discover-audience-pill[href="?tab=stream"]::after { content: "ALL" !important; }
  html body.page-discover #main .discover-audience-info summary {
    font-size: 0.68rem !important;
  }
}

/* Replace the legacy site header (#sticky-header + bootstrap navbar) with
   the brutalist v6 nav-bar. On the V6 discover page only. */
html body.page-discover #sticky-header {
  display: none !important;
}

/* ---- Sticky V6 nav bar (from v6-nav.php) ---- */
html body .nav-bar {
  position: sticky !important;
  top: 0 !important;
  z-index: 100 !important;
  background: rgba(var(--bg-rgb),0.92) !important;
  backdrop-filter: blur(10px) !important;
  border-bottom: 2px solid var(--border-color) !important;
  padding: 0.75rem 1.5rem 0.65rem !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.55rem !important;
  justify-content: center !important;
  align-items: stretch !important;
}
html body .nav-top-row,
html body .nav-links {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100% !important;
  max-width: 1300px !important;
  margin: 0 auto !important;
}
html body .nav-links {
  justify-content: flex-start !important;
  gap: 0.5rem !important;
  overflow-x: auto !important;
  scrollbar-width: none !important;
  padding-bottom: 0.1rem !important;
}
html body .nav-links::-webkit-scrollbar { display: none !important; }
html body .nav-bar .brand {
  font-size: 1.8rem !important;
  font-weight: 900 !important;
  letter-spacing: -0.05em !important;
  text-transform: uppercase !important;
  color: var(--text) !important;
  text-shadow: none !important;
  min-height: 44px !important;
  display: inline-flex !important;
  align-items: center !important;
}
html body .nav-bar .brand span { color: var(--neon-green) !important; }
html body .nav-bar a { text-decoration: none !important; }
html body .nav-icon-btn,
html body .v6-auth-link {
  color: var(--text) !important;
  font-weight: 900 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.35rem !important;
  position: relative !important;
  min-width: 44px !important;
  min-height: 44px !important;
  border-radius: 999px !important;
}
html body .nav-icons { display: flex !important; align-items: center !important; gap: 1rem !important; }
html body .notification-dot {
  position: absolute !important;
  top: -4px !important;
  right: -5px !important;
  width: 9px !important;
  height: 9px !important;
  border-radius: 50% !important;
  background: var(--neon-pink) !important;
  border: 2px solid var(--bg) !important;
}
html body .nav-link {
  color: var(--text-dim) !important;
  border: 2px solid transparent !important;
  border-radius: 999px !important;
  padding: 0.58rem 1rem !important;
  min-height: 44px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0.82rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
  gap: 0.38rem !important;
  position: relative !important;
}
html body .nav-link .nav-link-icon { font-size: 0.82rem !important; }
html body .nav-link .nav-link-caret { font-size: 0.68rem !important; opacity: 0.72 !important; }
html body .nav-link:hover { color: var(--text) !important; border-color: var(--border-color) !important; }
html body .nav-link.active {
  background: var(--text) !important;
  color: var(--bg) !important;
  border-color: var(--text) !important;
}
html body .nav-link.active .nav-link-caret { opacity: 1 !important; }
html body .v6-join-link { margin-left: 0 !important; border-color: var(--neon-green) !important; color: var(--neon-green) !important; }
html body .nav-avatar-link {
  margin-left: 0 !important;
  border: 2px solid transparent !important;
  border-radius: 50% !important;
  padding: 2px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
}
html body .nav-avatar-link.active { border-color: var(--neon-green) !important; }
html body .nav-avatar {
  width: 34px !important;
  height: 34px !important;
  border-radius: 50% !important;
  border: 1px solid var(--border-color) !important;
  background: var(--card-bg) !important;
  color: var(--neon-green) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 900 !important;
}
html body.v6-mode .nav-bar .weird-context-trigger,
html body.v6-mode .nav-bar .weird-search-trigger,
html body.v6-mode .nav-bar .weird-notif-trigger,
html body.v6-mode .nav-bar .weird-avatar-trigger {
  position: relative !important;
  width: 44px !important;
  min-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 999px !important;
  border: 2px solid var(--border-color) !important;
  background: var(--bg) !important;
  background-image: none !important;
  color: var(--text) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: none !important;
  text-decoration: none !important;
  flex: 0 0 auto !important;
}
html body.v6-mode .nav-bar .weird-context-trigger:hover,
html body.v6-mode .nav-bar .weird-search-trigger:hover,
html body.v6-mode .nav-bar .weird-notif-trigger:hover,
html body.v6-mode .nav-bar .weird-avatar-trigger:hover,
html body.v6-mode .nav-bar .weird-search-trigger[aria-expanded="true"],
html body.v6-mode .nav-bar .weird-notif-trigger[aria-expanded="true"],
html body.v6-mode .nav-bar .weird-notif-trigger.is-open,
html body.v6-mode .nav-bar .weird-avatar-trigger[aria-expanded="true"] {
  border-color: var(--neon-green) !important;
  color: var(--neon-green) !important;
  background: #000 !important;
}
html body.v6-mode .nav-bar .weird-avatar-trigger img,
html body.v6-mode .nav-bar .weird-avatar-halo,
html body.v6-mode .nav-bar .weird-avatar-halo img {
  width: 34px !important;
  height: 34px !important;
  border-radius: 999px !important;
  display: block !important;
  object-fit: cover !important;
}
html body.v6-mode .nav-bar .weird-avatar-halo {
  overflow: hidden !important;
  background: var(--card-bg) !important;
}
html body.v6-mode .nav-bar .weird-message-badge,
html body.v6-mode .nav-bar .weird-notif-badge,
html body.v6-mode .nav-bar .weird-nav-play-badge,
html body.v6-mode .v6-app-tabbar .weird-nav-play-badge {
  top: -6px !important;
  right: -6px !important;
  border-color: var(--bg) !important;
}
html body.v6-mode .nav-bar .weird-nav-play-badge,
html body.v6-mode .v6-app-tabbar .weird-nav-play-badge {
  position: absolute !important;
  min-width: 20px !important;
  height: 20px !important;
  padding: 0 5px !important;
  border-radius: 999px !important;
  border: 2px solid var(--bg) !important;
  background: var(--neon-orange) !important;
  color: #000 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0.66rem !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
}
html.light-mode body.v6-mode .nav-bar .weird-context-trigger,
html.light-mode body.v6-mode .nav-bar .weird-search-trigger,
html.light-mode body.v6-mode .nav-bar .weird-notif-trigger,
html.light-mode body.v6-mode .nav-bar .weird-avatar-trigger,
html.light-mode body.v6-mode .nav-bar .v6-auth-link {
  background: #111827 !important;
  color: #ffffff !important;
  border-color: #374151 !important;
}
html.light-mode body.v6-mode .nav-bar .weird-context-trigger i,
html.light-mode body.v6-mode .nav-bar .weird-search-trigger i,
html.light-mode body.v6-mode .nav-bar .weird-notif-trigger i,
html.light-mode body.v6-mode .nav-bar .v6-auth-link i {
  color: #ffffff !important;
}
html.light-mode body.v6-mode .nav-bar .weird-context-trigger:hover,
html.light-mode body.v6-mode .nav-bar .weird-search-trigger:hover,
html.light-mode body.v6-mode .nav-bar .weird-notif-trigger:hover,
html.light-mode body.v6-mode .nav-bar .weird-avatar-trigger:hover,
html.light-mode body.v6-mode .nav-bar .v6-auth-link:hover,
html.light-mode body.v6-mode .nav-bar .weird-search-trigger[aria-expanded="true"],
html.light-mode body.v6-mode .nav-bar .weird-notif-trigger[aria-expanded="true"],
html.light-mode body.v6-mode .nav-bar .weird-notif-trigger.is-open,
html.light-mode body.v6-mode .nav-bar .weird-avatar-trigger[aria-expanded="true"] {
  background: #000000 !important;
  color: var(--neon-green) !important;
  border-color: var(--neon-green) !important;
}
html.light-mode body.v6-mode .nav-bar .nav-link.active {
  background: #ffffff !important;
  color: #111827 !important;
  border-color: #ffffff !important;
}
@media (max-width: 560px) {
  html body .nav-bar {
    padding: 0.34rem 0.8rem 0.45rem !important;
    gap: 0.36rem !important;
  }
  html body .nav-top-row,
  html body .nav-links {
    max-width: 100% !important;
  }
  html body .nav-bar .brand {
    font-size: 1.5rem !important;
  }
  html body .nav-icons {
    gap: 0.34rem !important;
  }
  html body .nav-icon-btn,
  html body .nav-avatar-link,
  html body .v6-auth-link,
  html body.v6-mode .nav-bar .weird-context-trigger,
  html body.v6-mode .nav-bar .weird-search-trigger,
  html body.v6-mode .nav-bar .weird-notif-trigger,
  html body.v6-mode .nav-bar .weird-avatar-trigger {
    min-width: 44px !important;
    min-height: 44px !important;
    width: 44px !important;
    height: 44px !important;
  }
  html body.v6-mode .nav-bar .weird-avatar-trigger img,
  html body.v6-mode .nav-bar .weird-avatar-halo,
  html body.v6-mode .nav-bar .weird-avatar-halo img {
    width: 30px !important;
    height: 30px !important;
  }
  html body .nav-link {
    padding: 0.52rem 0.64rem !important;
    min-height: 44px !important;
    font-size: 0.74rem !important;
  }
  html body .nav-links {
    gap: 0.35rem !important;
  }
}
html body.v6-mode .nav-bar.is-scrolled {
  border-bottom-color: var(--neon-green) !important;
  box-shadow: 0 10px 28px -24px var(--neon-green) !important;
}
html body.v6-mode .v6-app-tabbar {
  display: none !important;
}
@media (max-width: 991px) {
  html body.v6-mode .nav-bar,
  html body.v6-mode .nav-bar.is-scrolled {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 10020 !important;
  }
  html body.v6-mode #main {
    padding-top: var(--v6-nav-height, 96px) !important;
  }
}
@media (max-width: 720px) {
  html body.v6-mode {
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
  }
  html body.v6-mode.weird-game-fullscreen-active,
  html body.v6-mode.pvpg-fs-fallback,
  html body.v6-mode.monog-fs-fallback,
  html body.v6-mode.wordsg-fs-fallback {
    padding-bottom: 0 !important;
  }
  html body.v6-mode .nav-bar .nav-links {
    display: none !important;
  }
  html body.v6-mode .v6-app-tabbar {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 10005 !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 0.22rem !important;
    padding: 0.42rem max(0.52rem, env(safe-area-inset-left, 0px)) calc(0.42rem + env(safe-area-inset-bottom, 0px)) max(0.52rem, env(safe-area-inset-right, 0px)) !important;
    background: rgba(var(--bg-rgb),0.96) !important;
    border-top: 2px solid var(--border-color) !important;
    box-shadow: 0 -18px 45px -30px rgba(0,0,0,0.95) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
  }
  html body.v6-mode .v6-app-tabbar.has-five-tabs {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }
  html body.v6-mode.weird-game-fullscreen-active .v6-app-tabbar,
  html body.v6-mode.pvpg-fs-fallback .v6-app-tabbar,
  html body.v6-mode.monog-fs-fallback .v6-app-tabbar,
  html body.v6-mode.wordsg-fs-fallback .v6-app-tabbar {
    display: none !important;
  }
  html body.v6-mode .v6-app-tab {
    position: relative !important;
    min-width: 0 !important;
    min-height: 52px !important;
    border: 2px solid transparent !important;
    border-radius: 16px !important;
    background: transparent !important;
    color: var(--text-dim) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.16rem !important;
    padding: 0.28rem 0.12rem !important;
    text-decoration: none !important;
    font-weight: 950 !important;
    font-size: 0.65rem !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.02em !important;
    cursor: pointer !important;
    box-shadow: none !important;
  }
  html body.v6-mode .v6-app-tab i {
    font-size: 1rem !important;
    line-height: 1 !important;
  }
  html body.v6-mode .v6-app-tab.active,
  html body.v6-mode .v6-app-tab.is-open,
  html body.v6-mode .v6-app-tab[aria-expanded="true"] {
    color: #000 !important;
    background: var(--neon-green) !important;
    border-color: var(--neon-green) !important;
  }
  html body.v6-mode .v6-app-tab .weird-nav-play-badge {
    top: 3px !important;
    right: calc(50% - 28px) !important;
    border-color: rgba(var(--bg-rgb),0.96) !important;
    background: var(--neon-orange) !important;
    color: #000 !important;
  }
}
@media (max-width: 560px) {
  html body.v6-mode .nav-bar.is-scrolled {
    padding-top: 0.25rem !important;
    padding-bottom: 0.34rem !important;
  }
}
@media (max-width: 340px) {
  html body .nav-bar {
    padding-left: 0.65rem !important;
    padding-right: 0.65rem !important;
  }
  html body .nav-top-row {
    gap: 0.35rem !important;
  }
  html body .nav-bar .brand {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    font-size: 1.12rem !important;
  }
  html body .nav-icons {
    flex: 0 0 auto !important;
    gap: 0.25rem !important;
  }
  html body .nav-icon-btn,
  html body .nav-avatar-link {
    min-width: 44px !important;
    min-height: 44px !important;
  }
  html body .nav-avatar {
    width: 30px !important;
    height: 30px !important;
  }
  html body .nav-link {
    padding-left: 0.25rem !important;
    padding-right: 0.25rem !important;
    font-size: 0.62rem !important;
  }
  html body .nav-link-caret {
    margin-left: 0.16rem !important;
    font-size: 0.52rem !important;
  }
  html body .nav-links {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    overflow: visible !important;
    gap: 0.25rem !important;
  }
  html body .nav-links .nav-link {
    width: 100% !important;
    min-width: 0 !important;
  }
}

/* ---- Nav popout triggers are <button>; reset native chrome ---- */
/* The `:not(#zz)` bumps specificity to (1,x,x) so these beat the global
   v5-override `button:not(...)` gradient reset (~0,16,1) without editing it. */
html body .nav-bar button.nav-icon-btn:not(#zz),
html body .nav-bar button.nav-link:not(#zz),
html body .nav-bar button.nav-avatar-link:not(#zz) {
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  cursor: pointer !important;
  font-family: inherit !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}
html body .nav-bar button.nav-icon-btn:not(#zz) { border: none !important; color: var(--text) !important; }
html body .nav-bar button.nav-icon-btn:not(#zz) {
  width: 44px !important;
  min-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
}
html body .nav-bar button.nav-link:not(#zz) {
  border: 2px solid transparent !important;
  color: var(--text-dim) !important;
  padding: 0.58rem 1rem !important;
  min-height: 44px !important;
  font-size: 0.82rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
}
html body .nav-bar button.nav-link.active:not(#zz) { background: var(--text) !important; color: var(--bg) !important; border-color: var(--text) !important; }
html body .nav-bar button.nav-avatar-link:not(#zz) {
  border: 2px solid transparent !important;
  width: 44px !important;
  min-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
}
html body .nav-bar button.nav-avatar-link.is-open:not(#zz),
html body .nav-bar button.nav-avatar-link.active:not(#zz) { border-color: var(--neon-green) !important; }
html body .nav-link-caret { font-size: 0.6rem !important; margin-left: 0.3rem !important; opacity: 0.7 !important; transition: transform 0.15s !important; }
html body .nav-link-pop.is-open .nav-link-caret { transform: rotate(180deg) !important; }
html body .nav-icon-btn.is-open,
html body .nav-avatar-link.is-open { border-color: var(--neon-green) !important; }
@media (max-width: 560px) {
  html body .nav-bar button.nav-icon-btn:not(#zz),
  html body .nav-bar button.nav-avatar-link:not(#zz) {
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
  }
  html body .nav-bar button.nav-link:not(#zz) {
    padding: 0.52rem 0.64rem !important;
    min-height: 44px !important;
    font-size: 0.74rem !important;
  }
}
@media (max-width: 340px) {
  html body .nav-bar button.nav-icon-btn:not(#zz),
  html body .nav-bar button.nav-avatar-link:not(#zz) {
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
  }
  html body .nav-bar button.nav-link:not(#zz) {
    padding-left: 0.25rem !important;
    padding-right: 0.25rem !important;
    font-size: 0.62rem !important;
  }
}

/* ---- Nav popouts (search / explore / notifications / profile) ---- */
html body .nav-bar .v6-pop {
  position: absolute !important;
  top: calc(100% + 6px) !important;
  z-index: 200 !important;
  background: var(--card-bg) !important;
  border: 2px solid var(--border-color) !important;
  border-radius: 14px !important;
  box-shadow: var(--sh, 6px 6px 0 rgba(0,0,0,0.85)), 0 20px 50px -30px rgba(0,0,0,0.9) !important;
  padding: 0.85rem !important;
  color: var(--text) !important;
  animation: v6PopIn 0.12s ease-out !important;
}
html body .nav-bar .v6-pop[hidden] { display: none !important; }
@keyframes v6PopIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
html body .nav-bar .v6-pop-search-wrap { right: 1.5rem !important; left: auto !important; width: min(420px, calc(100vw - 3rem)) !important; }
html body .nav-bar .v6-pop-search { display: flex !important; align-items: center !important; gap: 0.5rem !important; }
html body .nav-bar .v6-pop-search > i { color: var(--text-dim) !important; }
html body .nav-bar .v6-pop-search input[type="search"] {
  flex: 1 1 auto !important; min-width: 0 !important;
  background: var(--bg) !important; border: 2px solid var(--border-color) !important;
  border-radius: 10px !important; color: var(--text) !important;
  padding: 0.6rem 0.8rem !important; font-size: 1rem !important; font-weight: 700 !important; outline: none !important;
}
html body .nav-bar .v6-pop-search input[type="search"]:focus { border-color: var(--neon-blue) !important; }
html body .nav-bar .v6-pop-search button {
  background: var(--neon-blue) !important; color: #000 !important; border: none !important;
  border-radius: 10px !important; padding: 0.6rem 1rem !important; font-weight: 900 !important;
  text-transform: uppercase !important; cursor: pointer !important; min-height: 42px !important;
}
html body .nav-bar .v6-pop-explore { left: 1.5rem !important; right: auto !important; width: min(360px, calc(100vw - 3rem)) !important; }
html body .nav-bar .v6-pop-grid { display: grid !important; grid-template-columns: repeat(3, 1fr) !important; gap: 0.5rem !important; }
html body .nav-bar .v6-pop-cat {
  display: flex !important; flex-direction: column !important; align-items: center !important; gap: 0.35rem !important;
  padding: 0.7rem 0.4rem !important; border: 2px solid var(--border-color) !important; border-radius: 10px !important;
  background: var(--bg) !important; color: var(--text) !important; text-decoration: none !important;
  font-size: 0.72rem !important; font-weight: 800 !important; text-transform: uppercase !important; text-align: center !important;
}
html body .nav-bar .v6-pop-cat i { font-size: 1.1rem !important; color: var(--cat-color, var(--neon-blue)) !important; }
html body .nav-bar .v6-pop-cat:hover { border-color: var(--cat-color, var(--neon-blue)) !important; }
html body .nav-bar .v6-pop-notif { right: 1.5rem !important; left: auto !important; width: min(360px, calc(100vw - 3rem)) !important; padding: 0.5rem !important; }
html body .nav-bar .v6-pop-profile { right: 1.5rem !important; left: auto !important; width: min(260px, calc(100vw - 3rem)) !important; padding: 0.4rem !important; }
html body .nav-bar .v6-pop-head { display: flex !important; align-items: center !important; justify-content: space-between !important; padding: 0.4rem 0.6rem 0.6rem !important; }
html body .nav-bar .v6-pop-head strong { font-weight: 900 !important; text-transform: uppercase !important; font-size: 0.8rem !important; letter-spacing: 0.03em !important; }
html body .nav-bar .v6-pop-head a { color: var(--neon-blue) !important; font-weight: 800 !important; font-size: 0.78rem !important; text-decoration: none !important; }
html body .nav-bar .v6-pop-item {
  display: flex !important; align-items: center !important; gap: 0.7rem !important;
  padding: 0.7rem 0.7rem !important; border-radius: 10px !important;
  color: var(--text) !important; text-decoration: none !important; font-weight: 700 !important; min-height: 44px !important;
}
html body .nav-bar .v6-pop-item i { width: 20px !important; text-align: center !important; color: var(--text-dim) !important; }
html body .nav-bar .v6-pop-item:hover { background: var(--bg) !important; color: var(--neon-blue) !important; }
html body .nav-bar .v6-pop-item:hover i { color: var(--neon-blue) !important; }
html body .nav-bar .v6-pop-item-danger,
html body .nav-bar .v6-pop-item-danger i,
html body .nav-bar .v6-pop-item-danger:hover { color: var(--neon-orange) !important; }
html body .nav-bar .v6-pop-list { max-height: 60vh !important; overflow-y: auto !important; }
html body .nav-bar .v6-notif-row {
  display: flex !important; align-items: flex-start !important; gap: 0.6rem !important;
  padding: 0.65rem 0.6rem !important; border-radius: 10px !important; color: var(--text) !important; text-decoration: none !important;
}
html body .nav-bar .v6-notif-row:hover { background: var(--bg) !important; }
html body .nav-bar .v6-notif-row.is-unread { background: rgba(0,240,255,0.06) !important; }
html body .nav-bar .v6-notif-ic { flex: 0 0 auto !important; width: 32px !important; height: 32px !important; border-radius: 8px !important; background: var(--bg) !important; border: 2px solid var(--border-color) !important; display: inline-flex !important; align-items: center !important; justify-content: center !important; color: var(--neon-blue) !important; }
html body .nav-bar .v6-notif-copy { min-width: 0 !important; display: flex !important; flex-direction: column !important; gap: 0.1rem !important; }
html body .nav-bar .v6-notif-copy strong { font-weight: 800 !important; font-size: 0.88rem !important; }
html body .nav-bar .v6-notif-copy em { font-style: normal !important; color: var(--text-dim) !important; font-size: 0.82rem !important; line-height: 1.35 !important; }
html body .nav-bar .v6-pop-empty { padding: 1.5rem 1rem !important; text-align: center !important; color: var(--text-dim) !important; font-weight: 700 !important; }
html body .nav-bar .v6-pop-empty i { display: block !important; font-size: 1.5rem !important; margin-bottom: 0.5rem !important; opacity: 0.6 !important; }
html body .nav-bar .v6-pop-foot { display: block !important; margin-top: 0.5rem !important; padding: 0.6rem !important; text-align: center !important; color: var(--neon-blue) !important; font-weight: 800 !important; text-decoration: none !important; border-top: 2px solid var(--border-color) !important; }
@media (max-width: 560px) {
  html body .nav-bar .v6-pop { left: 0.6rem !important; right: 0.6rem !important; width: auto !important; }
  html body .nav-bar .v6-pop-grid { grid-template-columns: repeat(4, 1fr) !important; }
}
html body.v6-mode .weird-search-popout,
html body.v6-mode .weird-notif-popout,
html body.v6-mode .weird-avatar-popout {
  top: var(--v6-nav-pop-top, 86px) !important;
}
html body.v6-mode .weird-search-popout,
html body.v6-mode .weird-notif-popout {
  z-index: 10020 !important;
}
html body.v6-mode .weird-avatar-popout { z-index: 10030 !important; }
html body.v6-mode .nav-bar .v6-auth-link {
  width: auto !important;
  min-width: 64px !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 0.8rem !important;
  border: 2px solid var(--border-color) !important;
  background: var(--bg) !important;
}
html body.v6-mode .weird-footer-critical a {
  min-height: 44px !important;
}

/* ---- Vote-breakdown "See who rated this" modal (v6) ---- */
html body.v6-mode .vb-backdrop { background: rgba(var(--bg-rgb),0.86) !important; }
html body.v6-mode .vb-card {
  background: var(--card-bg) !important;
  border: 2px solid var(--border-color) !important;
  border-radius: 16px !important;
  color: var(--text) !important;
  box-shadow: var(--sh, 6px 6px 0 rgba(0,0,0,0.85)) !important;
}
html body.v6-mode .vb-head { background: var(--card-bg) !important; border-bottom: 2px solid var(--border-color) !important; }
html body.v6-mode .vb-eyebrow { color: var(--neon-blue) !important; }
html body.v6-mode .vb-title { color: var(--text) !important; }
html body.v6-mode .vb-meta { color: var(--text-dim) !important; }
html body.v6-mode .vb-close {
  background: var(--bg) !important; border: 2px solid var(--border-color) !important; color: var(--text) !important;
}
html body.v6-mode .vb-pct-num { color: var(--text) !important; }
html body.v6-mode .vb-tally { background: var(--bg) !important; border: 2px solid var(--border-color) !important; }
html body.v6-mode .vb-tab { color: var(--text-dim) !important; background: transparent !important; }
html body.v6-mode .vb-tab.is-active { background: var(--text) !important; color: var(--bg) !important; }
html body.v6-mode .vb-tab-badge { background: rgba(255,255,255,0.18) !important; color: inherit !important; }
html body.v6-mode .vb-tab-circles { background: var(--bg) !important; border: 2px solid var(--border-color) !important; color: var(--text) !important; }
html body.v6-mode .vb-circles-menu { background: var(--card-bg) !important; border: 2px solid var(--border-color) !important; }
html body.v6-mode .vb-myvote { background: var(--bg) !important; border: 2px solid var(--border-color) !important; }
html body.v6-mode .vb-group-count { background: rgba(255,255,255,0.1) !important; color: var(--text) !important; }
html body.v6-mode .vb-rater,
html body.v6-mode .vb-rater-in {
  background: var(--bg) !important; border: 2px solid var(--border-color) !important; border-radius: 12px !important;
}
html body.v6-mode .vb-rater-av { border-color: var(--neon-blue) !important; }
html body.v6-mode .vb-rater-name { color: var(--text) !important; }
html body.v6-mode .vb-rater-ago { color: var(--text-dim) !important; }
html body.v6-mode .vb-empty { background: var(--bg) !important; border: 2px dashed var(--border-color) !important; color: var(--text-dim) !important; }
html body.v6-mode .vb-foot { background: var(--bg) !important; border-top: 2px solid var(--border-color) !important; color: var(--text-dim) !important; }
/* keep the semantic up/neutral/down group icon colors (green / amber / red) */

/* ---- Feed wrapper + big STREAM header ---- */
html body.page-discover #main .discover-wrap.feed,
html body.page-discover #main .discover-wrap-signal-board {
  max-width: 1300px !important;
  margin: 0 auto !important;
  padding: 2rem 1.5rem 4rem !important;
  background: transparent !important;
  border: none !important;
}
@media (max-width: 560px) {
  html body.page-discover #main .discover-wrap.feed,
  html body.page-discover #main .discover-wrap-signal-board {
    padding-top: 1rem !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}
html body.page-discover #main .feed-header {
  font-size: clamp(2.75rem, 7vw, 4rem) !important;
  font-weight: 900 !important;
  letter-spacing: -0.05em !important;
  text-transform: uppercase !important;
  line-height: 0.92 !important;
  margin: 0 0 2rem 0 !important;
  color: var(--text) !important;
  text-align: left !important;
}

/* ============================================================
   THE GRID — responsive, cards never squish (min 340px wide)
   ============================================================ */
html body.page-discover #main .discover-stream,
html body.page-discover #main .discover-stream[data-mixed="1"] {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)) !important;
  gap: 1.5rem !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  align-items: start !important;
}

@media (max-width: 430px) {
  html body.page-discover #main .discover-stream,
  html body.page-discover #main .discover-stream[data-mixed="1"] {
    grid-template-columns: 1fr !important;
  }
}

/* ---- Card base ---- */
html body.page-discover #main .discover-stream > .card {
  display: block !important;
  align-self: start !important;
  background: var(--card-bg) !important;
  border: 2px solid var(--border-color) !important;
  border-radius: var(--radius) !important;
  padding: 1.4rem !important;
  margin: 0 !important;
  height: auto !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  min-height: 0 !important;
  position: relative !important;
  margin-bottom: 1.5rem !important;
  box-shadow: var(--sh, 4px 4px 0 rgba(0,0,0,0.75)) !important;
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease !important;
  /* deliberately NO content-visibility / contain-intrinsic-size:
     they were reserving ~300px of empty height per card. */
}
@media (max-width: 560px) {
  html body.page-discover #main .discover-stream,
  html body.page-discover #main .discover-stream[data-mixed="1"] {
    gap: 1rem !important;
  }
  html body.page-discover #main .discover-stream > .card {
    padding: 1rem !important;
    border-radius: 14px !important;
    box-shadow: var(--sh, 3px 3px 0 rgba(0,0,0,0.75)) !important;
    margin-bottom: 1rem !important;
  }
  html body.page-discover #main .discover-stream > .card:hover {
    transform: none !important;
  }
}
html body.page-discover #main .discover-stream > .card:hover {
  transform: translate(-3px, -3px) !important;
}
html body.page-discover #main .discover-stream > .card.take:hover   { border-color: var(--card-accent) !important; box-shadow: 7px 7px 0 var(--card-accent) !important; }
html body.page-discover #main .discover-stream > .card.match:hover  { border-color: var(--card-accent) !important; box-shadow: 7px 7px 0 var(--card-accent) !important; }
html body.page-discover #main .discover-stream > .card.media:hover  { border-color: var(--card-accent) !important; box-shadow: 7px 7px 0 var(--card-accent) !important; }
html body.page-discover #main .discover-stream > .card.tournament:hover { border-color: var(--card-accent) !important; box-shadow: 7px 7px 0 var(--card-accent) !important; }
@media (max-width: 560px) {
  html body.page-discover #main .discover-stream > .card:hover {
    transform: none !important;
  }
}

/* Defeat the V5 signal-board purple card border (specificity (1,4,1)) and the
   card-rhythm nth-child accent border. Match the exact V5 ancestor chain and
   add one class so we win at (1,4,2), restoring the flat V6 #333 border. */
html body.page-discover .discover-wrap-signal-board #discover-stream.discover-stream > .card,
html body.page-discover .discover-wrap-signal-board #discover-stream.discover-stream > .discover-card {
  border-color: var(--border-color) !important;
  border-image: none !important;
}
html body.page-discover .discover-wrap-signal-board #discover-stream.discover-stream > .card.take:hover   { border-color: var(--card-accent) !important; }
html body.page-discover .discover-wrap-signal-board #discover-stream.discover-stream > .card.match:hover  { border-color: var(--card-accent) !important; }
html body.page-discover .discover-wrap-signal-board #discover-stream.discover-stream > .card.media:hover  { border-color: var(--card-accent) !important; }
html body.page-discover .discover-wrap-signal-board #discover-stream.discover-stream > .card.tournament:hover { border-color: var(--card-accent) !important; }
/* Preserve the intentional green accent on the daily "Today" hero card
   (matches the design's green "game"/hero card). Must out-specify the
   general #333 override above, so restate the full signal-board chain. */
html body.page-discover .discover-wrap-signal-board #discover-stream.discover-stream > .card.v6-today-card {
  border-color: var(--neon-green) !important;
}

/* ---- Card top row (pill + time + more) ---- */
html body.page-discover #main .card .card-top {
  display: flex !important;
  align-items: center !important;
  gap: 0.6rem !important;
  margin-bottom: 1.1rem !important;
}
html body.page-discover #main .card .v6-card-tools {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.45rem !important;
  flex: 0 0 auto !important;
  margin-left: auto !important;
}
html body.page-discover #main .card .v6-card-pct,
html body.page-discover #main .card .v6-detail-link,
html body.page-discover #main .card button.discover-card-more.btn {
  position: static !important;
  inset: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  transform: none !important;
  width: auto !important;
  min-width: 44px !important;
  min-height: 44px !important;
  height: 44px !important;
  flex: 0 0 auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.3rem !important;
  padding: 0 0.65rem !important;
  border: 2px solid var(--border-color) !important;
  border-radius: 12px !important;
  background: var(--bg) !important;
  color: var(--text) !important;
  box-shadow: none !important;
  line-height: 1 !important;
  text-decoration: none !important;
}
html body.page-discover #main .card .v6-card-pct {
  border-color: var(--card-accent) !important;
  color: var(--card-accent) !important;
  font-weight: 900 !important;
}
html body.page-discover #main .card .v6-card-pct.v6-card-pct-empty {
  max-width: 132px !important;
  color: #ffffff !important;
  border-color: rgba(255,255,255,0.22) !important;
  background: rgba(0,0,0,0.66) !important;
  font-size: 0.74rem !important;
  line-height: 1.05 !important;
  text-align: center !important;
  white-space: normal !important;
}
html body.page-discover #main .card .v6-card-pct small {
  color: inherit !important;
  font-size: 0.7rem !important;
  letter-spacing: 0 !important;
}
html body.page-discover #main .card .v6-detail-link:hover,
html body.page-discover #main .card button.discover-card-more.btn:hover,
html body.page-discover #main .card .v6-card-pct:hover {
  background: var(--card-accent) !important;
  color: #000 !important;
  border-color: var(--card-accent) !important;
}
html body.page-discover #main .card .pill {
  padding: 0.35rem 0.85rem !important;
  border-radius: var(--radius-pill) !important;
  font-size: 0.72rem !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: var(--bg) !important;
  background: var(--text) !important;
  border: none !important;
  white-space: nowrap !important;
}
html body.page-discover #main .card .pill.take,
html body.page-discover #main .card .pill.match,
html body.page-discover #main .card .pill.media,
html body.page-discover #main .card .pill.tournament { background: var(--card-accent) !important; }
html body.page-discover #main .card .discover-card-more {
  border: none !important;
  background: transparent !important;
  color: var(--text-dim) !important;
  font-size: 1.35rem !important;
  line-height: 1 !important;
  padding: 0 !important;
  cursor: pointer !important;
  flex: 0 0 auto !important;
}
html body.page-discover #main .card .discover-card-more:hover { color: var(--text) !important; }
html body.page-discover #main .card .v6-title-link {
  color: inherit !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  min-height: 44px !important;
}
html body.page-discover #main .card .v6-title-link:hover {
  color: var(--card-accent) !important;
}
html body.page-discover #main .card .v6-card-title-row {
  display: flex !important;
  align-items: flex-start !important;
  gap: 0.75rem !important;
  margin: 0 0 0.55rem 0 !important;
  min-width: 0 !important;
}
html body.page-discover #main .card .v6-card-title-row .q-text {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  margin: 0 !important;
}
html body.page-discover #main .card .v6-card-title-row .v6-card-tools {
  margin-left: auto !important;
  justify-content: flex-end !important;
  align-self: flex-start !important;
}

/* ---- Headline + body copy (must wrap, never clip) ---- */
html body.page-discover #main .card .q-text {
  font-size: 1.35rem !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  letter-spacing: -0.02em !important;
  margin: 0 0 0.6rem 0 !important;
  color: var(--text) !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
  min-width: 0 !important;
}
html body.page-discover #main .card p {
  color: var(--text-dim) !important;
  font-size: 1rem !important;
  line-height: 1.45 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  min-width: 0 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 4 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}
html body.page-discover #main .card.v6-joke-card .v6-joke-reveal-wrap {
  display: grid !important;
  gap: 0.7rem !important;
  margin: 0.15rem 0 1.25rem 0 !important;
}
html body.page-discover #main .card.v6-joke-card .v6-joke-toggle {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
html body.page-discover #main .card.v6-joke-card .v6-joke-reveal {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.45rem !important;
  box-sizing: border-box !important;
  width: fit-content !important;
  min-height: 44px !important;
  padding: 0 1rem !important;
  border: 2px solid rgba(250,204,21,0.34) !important;
  border-radius: var(--radius-pill) !important;
  background: rgba(250,204,21,0.08) !important;
  color: #facc15 !important;
  font-size: 0.9rem !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  cursor: pointer !important;
  user-select: none !important;
}
html body.page-discover #main .card.v6-joke-card .v6-joke-toggle:focus-visible + .v6-joke-reveal {
  outline: 3px solid rgba(250,204,21,0.36) !important;
  outline-offset: 3px !important;
}
html body.page-discover #main .card.v6-joke-card .v6-joke-reveal-hide,
html body.page-discover #main .card.v6-joke-card .v6-joke-icon-hide {
  display: none !important;
}
html body.page-discover #main .card.v6-joke-card .v6-joke-toggle:checked + .v6-joke-reveal {
  background: rgba(250,204,21,0.18) !important;
  border-color: rgba(250,204,21,0.42) !important;
  color: #ffffff !important;
}
html body.page-discover #main .card.v6-joke-card .v6-joke-toggle:checked + .v6-joke-reveal .v6-joke-reveal-show,
html body.page-discover #main .card.v6-joke-card .v6-joke-toggle:checked + .v6-joke-reveal .v6-joke-icon-show {
  display: none !important;
}
html body.page-discover #main .card.v6-joke-card .v6-joke-toggle:checked + .v6-joke-reveal .v6-joke-reveal-hide,
html body.page-discover #main .card.v6-joke-card .v6-joke-toggle:checked + .v6-joke-reveal .v6-joke-icon-hide {
  display: inline-flex !important;
}
html body.page-discover #main .card.v6-joke-card .v6-joke-punch {
  position: relative !important;
  padding: 0.9rem 1rem 0.9rem 1.15rem !important;
  border: 2px solid rgba(45,212,191,0.22) !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, rgba(20,184,166,0.10), rgba(34,197,94,0.07)) !important;
  color: var(--text) !important;
  font-size: 1rem !important;
  line-height: 1.5 !important;
  overflow-wrap: anywhere !important;
}
html body.page-discover #main .card.v6-joke-card .v6-joke-punch::before {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  top: 10px !important;
  bottom: 10px !important;
  width: 3px !important;
  border-radius: var(--radius-pill) !important;
  background: linear-gradient(180deg, #2dd4bf, #22c55e) !important;
}
html body.page-discover #main .card.v6-joke-card .v6-joke-toggle:not(:checked) + .v6-joke-reveal + .v6-joke-punch {
  display: none !important;
}
html body.page-discover #main .card.v6-joke-card .v6-joke-one-liner {
  color: var(--text-dim) !important;
  font-weight: 800 !important;
  margin: 0 0 1.25rem 0 !important;
}
html.light-mode body.page-discover #main #discover-stream .card.v6-joke-card .v6-joke-reveal {
  background: rgba(250,204,21,0.08) !important;
  border-color: rgba(250,204,21,0.20) !important;
  color: #facc15 !important;
}
html.light-mode body.page-discover #main #discover-stream .card.v6-joke-card .v6-joke-toggle:checked + .v6-joke-reveal {
  background: rgba(250,204,21,0.16) !important;
  border-color: rgba(250,204,21,0.32) !important;
  color: #facc15 !important;
}
html.light-mode body.page-discover #main #discover-stream .card.v6-joke-card .v6-joke-punch {
  background: rgba(22,163,74,0.07) !important;
  border-color: rgba(22,163,74,0.18) !important;
  color: #111111 !important;
}
@media (max-width: 520px) {
  html body.page-discover #main .card.v6-joke-card .v6-joke-reveal {
    width: 100% !important;
  }
}

/* ---- Media card: full-width horizontal artwork, copy below ---- */
html body.page-discover #main .card .media-flex {
  display: flex !important;
  flex-direction: column !important;
  gap: 1.1rem !important;
  align-items: stretch !important;
}
html body.page-discover #main .card .media-flex > div:not(.poster) { min-width: 0 !important; flex: 0 1 auto !important; width: 100% !important; }
html body.page-discover #main .card .v6-media-shell {
  position: relative !important;
  width: 100% !important;
  min-width: 0 !important;
}
html body.page-discover #main .card .v6-media-overlay {
  position: absolute !important;
  top: 0.75rem !important;
  left: 0.75rem !important;
  right: 0.75rem !important;
  z-index: 4 !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 0.65rem !important;
  pointer-events: none !important;
}
html body.page-discover #main .card .v6-media-overlay .pill,
html body.page-discover #main .card .v6-media-overlay .v6-card-pct {
  pointer-events: auto !important;
  box-shadow: 0 10px 24px rgba(0,0,0,0.32) !important;
}
html body.page-discover #main .card .v6-media-overlay .pill {
  max-width: calc(100% - 132px) !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
/* V6 feedback #21 — category pill links to its section. Keep the anchor
   looking exactly like the static pill (no underline) with a subtle
   affordance on hover/focus so it reads as tappable. */
html body.page-discover #main .card a.pill.v6-cat-pill-link {
  text-decoration: none !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  transition: transform 0.12s ease, filter 0.12s ease !important;
}
html body.page-discover #main .card a.pill.v6-cat-pill-link:hover,
html body.page-discover #main .card a.pill.v6-cat-pill-link:focus-visible {
  filter: brightness(1.08) !important;
  transform: translateY(-1px) !important;
}
html body.page-discover #main .card .v6-media-overlay .v6-card-pct {
  height: 44px !important;
  min-height: 44px !important;
  min-width: 0 !important;
  padding: 0 0.8rem !important;
  font-size: 0.88rem !important;
  background: rgba(0,0,0,0.72) !important;
  color: #fff !important;
  border-color: rgba(255,255,255,0.24) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}
html body.page-discover #main .card .v6-media-overlay .v6-card-pct.v6-card-pct-empty {
  min-width: 108px !important;
  padding: 0 0.72rem !important;
  color: #ffffff !important;
}
html body.page-discover #main .card .v6-media-overlay .v6-card-pct small {
  font-size: 0.72rem !important;
}
html body.page-discover #main .card .poster {
  position: relative !important;
  flex: 0 0 auto !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 4 / 3 !important;
  border-radius: 12px !important;
  border: 2px solid var(--border-color) !important;
  background-color: var(--card-bg) !important;
  background-size: cover !important;
  background-position: center !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 2.4rem !important;
  overflow: hidden !important;
}
html body.page-discover #main .card .poster .v6-poster-img {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: cover !important;
}
html body.page-discover #main .card .v6-poster-fallback {
  display: none !important;
}
html body.page-discover #main .card .v6-media-shell.v6-image-failed > button.poster.meme-zoom-trigger {
  display: none !important;
}
html body.page-discover #main .card .v6-media-shell.v6-image-failed > .v6-poster-fallback {
  display: flex !important;
}
html body.page-discover #main .card .v6-local-map-poster {
  padding: 0 !important;
  align-items: stretch !important;
  justify-content: stretch !important;
  background: var(--card-bg) !important;
}
html body.page-discover #main .card .v6-local-map-poster .local-map-preview {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  overflow: hidden !important;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.10) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(135deg, var(--local-map-a, #14f195), var(--local-map-b, #0f766e)) !important;
  background-size: 42px 42px, 42px 42px, auto !important;
  color: #ffffff !important;
}
html body.page-discover #main .card .v6-local-map-poster .local-map-preview.local-map-tone-1 { --local-map-a: #0ea5e9; --local-map-b: #0f766e; }
html body.page-discover #main .card .v6-local-map-poster .local-map-preview.local-map-tone-2 { --local-map-a: #2563eb; --local-map-b: #1d4ed8; }
html body.page-discover #main .card .v6-local-map-poster .local-map-preview.local-map-tone-3 { --local-map-a: #f97316; --local-map-b: #dc2626; }
html body.page-discover #main .card .v6-local-map-poster .local-map-preview.local-map-tone-4 { --local-map-a: #334155; --local-map-b: #0f766e; }
html body.page-discover #main .card .v6-local-map-poster .local-map-preview.local-map-tone-5 { --local-map-a: #db2777; --local-map-b: #e11d48; }
html body.page-discover #main .card .v6-local-map-poster .local-map-frame {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  display: block !important;
  filter: saturate(0.9) contrast(1.04) brightness(0.92) !important;
  pointer-events: none !important;
}
html body.page-discover #main .card .v6-local-map-poster .local-map-preview::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 2 !important;
  pointer-events: none !important;
  background:
    linear-gradient(180deg, rgba(15,23,42,0.10), rgba(15,23,42,0.30)),
    radial-gradient(circle at 50% 45%, transparent 0 30%, rgba(15,23,42,0.18) 72%) !important;
}
html body.page-discover #main .card .v6-local-map-poster .local-map-pin {
  position: absolute !important;
  left: 50% !important;
  top: 46% !important;
  width: 42px !important;
  height: 42px !important;
  transform: translate(-50%, -50%) !important;
  border-radius: var(--radius-pill) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 5 !important;
  background: linear-gradient(135deg, #ef4444, #b91c1c) !important;
  border: 2px solid rgba(255,255,255,0.92) !important;
  box-shadow: 0 14px 28px -18px rgba(0,0,0,0.72), 0 0 0 7px rgba(239,68,68,0.16) !important;
}
html body.page-discover #main .card .v6-local-map-poster .local-map-pin i {
  color: #ffffff !important;
  font-size: 18px !important;
}
html body.page-discover #main .card .v6-local-map-poster .local-map-label {
  position: absolute !important;
  left: 12px !important;
  right: 12px !important;
  bottom: 10px !important;
  z-index: 6 !important;
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  min-width: 0 !important;
  padding: 7px 10px !important;
  border-radius: var(--radius-pill) !important;
  background: rgba(15,23,42,0.72) !important;
  border: 1px solid rgba(255,255,255,0.18) !important;
  box-shadow: 0 12px 22px -18px rgba(0,0,0,0.8) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}
html body.page-discover #main .card .v6-local-map-poster .local-map-label strong,
html body.page-discover #main .card .v6-local-map-poster .local-map-label small {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  min-width: 0 !important;
}
html body.page-discover #main .card .v6-local-map-poster .local-map-label strong {
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}
html body.page-discover #main .card .v6-local-map-poster .local-map-label small {
  margin-left: auto !important;
  color: rgba(226,232,240,0.82) !important;
  font-size: 10.5px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
}
html.light-mode body.page-discover #main #discover-stream .card .v6-local-map-poster .local-map-label {
  background: rgba(255,255,255,0.82) !important;
  border-color: rgba(15,23,42,0.10) !important;
  box-shadow: 0 12px 22px -20px rgba(15,23,42,0.30) !important;
}
html.light-mode body.page-discover #main #discover-stream .card .v6-local-map-poster .local-map-label strong {
  color: #111827 !important;
}
html.light-mode body.page-discover #main #discover-stream .card .v6-local-map-poster .local-map-label small {
  color: #4b5563 !important;
}
html body.page-discover #main .card .v6-card-copy { min-width: 0 !important; width: 100% !important; }
html body.page-discover #main .card .v6-card-footer-tools {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 0.85rem !important;
  margin-top: 0.95rem !important;
}
html body.page-discover #main .card .v6-card-footer-tools .discover-why {
  flex: 1 1 auto !important;
  margin: 0 !important;
}
html body.page-discover #main .card .v6-card-footer-tools button.discover-card-more.btn {
  margin-left: auto !important;
}

/* ---- Social recommendation card: person + their take + item actions ---- */
html body.page-discover #main .card.v6-social-rec-card {
  --card-accent: var(--neon-pink);
}
html body.page-discover #main .card.v6-social-rec-card .v6-social-rec-head {
  display: grid !important;
  grid-template-columns: 56px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 0.75rem !important;
  margin-bottom: 1rem !important;
}
html body.page-discover #main .card.v6-social-rec-card .v6-social-rec-avatar {
  width: 56px !important;
  height: 56px !important;
  border-color: var(--neon-pink) !important;
  text-decoration: none !important;
}
html body.page-discover #main .card.v6-social-rec-card .v6-social-rec-meta {
  min-width: 0 !important;
}
html body.page-discover #main .card.v6-social-rec-card .v6-social-rec-line {
  color: var(--text) !important;
  font-size: 1rem !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
  overflow-wrap: anywhere !important;
}
html body.page-discover #main .card.v6-social-rec-card .v6-social-rec-name {
  color: var(--neon-pink) !important;
  text-decoration: none !important;
}
html body.page-discover #main .card.v6-social-rec-card .v6-social-rec-name:hover {
  color: #e6ff7a !important;
}
html body.page-discover #main .card.v6-social-rec-card .v6-social-rec-verb {
  color: var(--text) !important;
}
html body.page-discover #main .card.v6-social-rec-card .v6-social-rec-sub {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 0.35rem !important;
  margin-top: 0.25rem !important;
  color: var(--text-dim) !important;
  font-size: 0.82rem !important;
  font-weight: 800 !important;
}
html body.page-discover #main .card.v6-social-rec-card .v6-social-rec-head button.discover-card-more.btn {
  margin-left: 0 !important;
}
html body.page-discover #main .card.v6-social-rec-card .v6-social-rec-item {
  display: grid !important;
  grid-template-columns: 88px minmax(0, 1fr) 44px !important;
  align-items: center !important;
  gap: 0.8rem !important;
  padding: 0.75rem !important;
  border: 2px solid rgba(var(--ng-rgb),0.22) !important;
  border-radius: 16px !important;
  background: rgba(var(--ng-rgb),0.06) !important;
  margin-bottom: 1rem !important;
}
html body.page-discover #main .card.v6-social-rec-card .v6-social-rec-thumb {
  position: relative !important;
  overflow: hidden !important;
  width: 88px !important;
  height: 88px !important;
  min-width: 88px !important;
  border: 2px solid var(--border-color) !important;
  border-radius: 14px !important;
  background-color: var(--bg) !important;
  background-position: center !important;
  background-size: cover !important;
  color: var(--card-accent) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.35rem !important;
  padding: 0 !important;
}
html body.page-discover #main .card.v6-social-rec-card .v6-social-rec-img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}
html body.page-discover #main .card.v6-social-rec-card .v6-social-rec-thumb-fallback {
  display: none !important;
  position: absolute !important;
  inset: 0 !important;
  align-items: center !important;
  justify-content: center !important;
  background: var(--bg) !important;
}
html body.page-discover #main .card.v6-social-rec-card .v6-social-rec-thumb.v6-image-failed .v6-social-rec-img {
  display: none !important;
}
html body.page-discover #main .card.v6-social-rec-card .v6-social-rec-thumb.v6-image-failed .v6-social-rec-thumb-fallback {
  display: inline-flex !important;
}
html body.page-discover #main .card.v6-social-rec-card .v6-social-rec-item-more {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  padding: 0 !important;
  margin-left: 0 !important;
}
html body.page-discover #main .card.v6-social-rec-card .v6-social-rec-item-copy {
  min-width: 0 !important;
}
html body.page-discover #main .card.v6-social-rec-card .v6-social-rec-kicker {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.35rem !important;
  color: var(--neon-green) !important;
  font-size: 0.72rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  margin-bottom: 0.25rem !important;
}
html body.page-discover #main .card.v6-social-rec-card .v6-social-rec-kicker.verb-up,
html body.page-discover #main .card.v6-social-rec-card .v6-social-rec-verb.verb-up {
  color: #86efac !important;
}
html body.page-discover #main .card.v6-social-rec-card .v6-social-rec-kicker.verb-neutral,
html body.page-discover #main .card.v6-social-rec-card .v6-social-rec-verb.verb-neutral {
  color: #fbbf24 !important;
}
html body.page-discover #main .card.v6-social-rec-card .v6-social-rec-kicker.verb-down,
html body.page-discover #main .card.v6-social-rec-card .v6-social-rec-verb.verb-down {
  color: #fb923c !important;
}
html body.page-discover #main .card.v6-social-rec-card .v6-social-rec-title {
  color: var(--text) !important;
  font-size: 1.08rem !important;
  font-weight: 900 !important;
  line-height: 1.18 !important;
  overflow-wrap: anywhere !important;
}
html body.page-discover #main .card.v6-social-rec-card .v6-social-rec-cat {
  color: var(--text-dim) !important;
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  margin-top: 0.35rem !important;
  overflow-wrap: anywhere !important;
}
html body.page-discover #main .card.v6-social-rec-card .v6-social-rec-actions {
  display: grid !important;
  gap: 0.65rem !important;
}
html body.page-discover #main .card.v6-social-rec-card .v6-social-rec-prompt {
  color: var(--text-dim) !important;
  font-size: 0.78rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.03em !important;
  text-transform: uppercase !important;
}
html.light-mode body.page-discover #main #discover-stream .card.v6-social-rec-card .v6-social-rec-item {
  background: rgba(var(--ng-rgb),0.05) !important;
  border-color: rgba(var(--ng-rgb),0.16) !important;
}
html.light-mode body.page-discover #main #discover-stream .card.v6-social-rec-card .v6-social-rec-title,
html.light-mode body.page-discover #main #discover-stream .card.v6-social-rec-card .v6-social-rec-line {
  color: #111111 !important;
}
html.light-mode body.page-discover #main #discover-stream .card.v6-social-rec-card .v6-social-rec-kicker.verb-up,
html.light-mode body.page-discover #main #discover-stream .card.v6-social-rec-card .v6-social-rec-verb.verb-up {
  color: #15803d !important;
}
html.light-mode body.page-discover #main #discover-stream .card.v6-social-rec-card .v6-social-rec-kicker.verb-neutral,
html.light-mode body.page-discover #main #discover-stream .card.v6-social-rec-card .v6-social-rec-verb.verb-neutral {
  color: #b45309 !important;
}
html.light-mode body.page-discover #main #discover-stream .card.v6-social-rec-card .v6-social-rec-kicker.verb-down,
html.light-mode body.page-discover #main #discover-stream .card.v6-social-rec-card .v6-social-rec-verb.verb-down {
  color: #c2410c !important;
}
@media (max-width: 520px) {
  html body.page-discover #main .card.v6-social-rec-card .v6-social-rec-head {
    grid-template-columns: 48px minmax(0, 1fr) !important;
  }
  html body.page-discover #main .card.v6-social-rec-card .v6-social-rec-avatar {
    width: 48px !important;
    height: 48px !important;
  }
  html body.page-discover #main .card.v6-social-rec-card .v6-social-rec-item {
    grid-template-columns: 72px minmax(0, 1fr) 42px !important;
    padding: 0.65rem !important;
  }
  html body.page-discover #main .card.v6-social-rec-card .v6-social-rec-thumb {
    width: 72px !important;
    height: 72px !important;
    min-width: 72px !important;
  }
  html body.page-discover #main .card.v6-social-rec-card .v6-social-rec-item-more {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
  }
}

/* ---- Match card ---- */
html body.page-discover #main .card .match-profile {
  display: flex !important;
  align-items: center !important;
  gap: 1rem !important;
}
html body.page-discover #main .card .avatar {
  flex: 0 0 auto !important;
  width: 56px !important;
  height: 56px !important;
  border-radius: 50% !important;
  border: 3px solid var(--neon-pink) !important;
  background-color: var(--card-bg) !important;
  background-size: cover !important;
  background-position: center !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 900 !important;
  font-size: 1.3rem !important;
  color: var(--text) !important;
}
html body.page-discover #main .card .avatar img,
html body.page-discover #main .card .avatar picture,
html body.page-discover #main .card .avatar .discover-card-avatar-img,
html body.page-discover #main .card .avatar .avatar-img {
  width: 100% !important;
  height: 100% !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  display: block !important;
}
html body.page-discover #main .card .match-info { min-width: 0 !important; }
html body.page-discover #main .card .match-info h3 {
  margin: 0 0 0.2rem 0 !important;
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  color: var(--text) !important;
}
html body.page-discover #main .card .match-info p {
  margin: 0 !important;
  color: var(--neon-pink) !important;
  font-weight: 700 !important;
  display: block !important;
  -webkit-line-clamp: none !important;
}

/* ---- Match/social card: pink top accent + prominent %, agreement box ---- */
html body.page-discover #main .discover-stream > .card.v6-match-card {
  border-top: 4px solid var(--neon-pink) !important;
}
html body.page-discover #main .card .v6-match-when {
  margin-left: auto !important;
  color: var(--text-dim) !important;
  font-weight: 800 !important;
  font-size: 0.82rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.03em !important;
  white-space: nowrap !important;
}
html body.page-discover #main .card .v6-match-pct {
  font-size: 2.4rem !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: -0.04em !important;
  color: var(--neon-pink) !important;
  margin-bottom: 0.15rem !important;
}
html body.page-discover #main .card .v6-match-agree {
  margin-top: 1.3rem !important;
  padding: 1rem !important;
  background: var(--bg) !important;
  border: 2px solid var(--border-color) !important;
  border-radius: 12px !important;
}
html body.page-discover #main .card .v6-match-agree-label {
  font-size: 0.72rem !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: var(--neon-pink) !important;
  margin-bottom: 0.3rem !important;
}
html body.page-discover #main .card .v6-match-agree-item {
  font-weight: 700 !important;
  font-size: 1.02rem !important;
  color: var(--text) !important;
  overflow-wrap: anywhere !important;
}

/* ---- Inline video embed (videos category) ---- */
html body.page-discover #main .card .v6-video-embed {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 16 / 9 !important;
  border: 2px solid var(--border-color) !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  margin-bottom: 1.1rem !important;
  background: #000 !important;
  display: block !important;
  padding: 0 !important;
  cursor: zoom-in !important;
  box-shadow: none !important;
}
html body.page-discover #main .card .v6-video-embed iframe {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  display: block !important;
  pointer-events: none !important;
}
html body.page-discover #main .card .v6-video-embed:fullscreen iframe {
  pointer-events: auto !important;
}
html body.page-discover #main .card .v6-video-fullscreen-badge {
  position: absolute !important;
  right: 0.7rem !important;
  bottom: 0.7rem !important;
  z-index: 3 !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid rgba(255,255,255,0.28) !important;
  background: rgba(0,0,0,0.66) !important;
  color: #ffffff !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}

/* ---- Meta line (genre / author / year) ---- */
html body.page-discover #main .card .v6-card-meta-line {
  color: var(--text-dim) !important;
  font-weight: 800 !important;
  font-size: 0.8rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.03em !important;
  margin: 0 0 0.6rem 0 !important;
  overflow-wrap: anywhere !important;
}

/* ---- Poster becomes a zoom button ---- */
html body.page-discover #main .card button.poster.meme-zoom-trigger {
  position: relative !important;
  padding: 0 !important;
  cursor: zoom-in !important;
  overflow: hidden !important;
}
html body.page-discover #main .card .meme-zoom-badge {
  position: absolute !important;
  bottom: 4px !important;
  right: 4px !important;
  width: 22px !important;
  height: 22px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 6px !important;
  background: rgba(var(--bg-rgb),0.75) !important;
  color: #fff !important;
  font-size: 0.7rem !important;
}

/* ---- Streaming / where-to-watch badges ---- */
html body.page-discover #main .card .streaming-badges {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.4rem !important;
  margin: 0 0 1rem 0 !important;
}
html body.page-discover #main .card .streaming-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.3rem !important;
  padding: 0.35rem 0.6rem !important;
  border: 2px solid var(--border-color) !important;
  border-radius: 8px !important;
  background: var(--bg) !important;
  color: var(--text) !important;
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}
html body.page-discover #main .card .streaming-badge em {
  color: var(--text-dim) !important;
  font-style: normal !important;
  font-weight: 700 !important;
  font-size: 0.68rem !important;
  text-transform: uppercase !important;
}
html body.page-discover #main .card .streaming-badge.is-mine {
  border-color: var(--card-accent) !important;
  color: var(--card-accent) !important;
}
html body.page-discover #main .card .streaming-badge.is-mine em { color: var(--card-accent) !important; }

/* ---- "Why this?" button + panel ---- */
html body.page-discover #main .card .discover-why { margin: 0 0 0.9rem 0 !important; }
html body.page-discover #main .card .discover-why-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.4rem !important;
  background: transparent !important;
  border: 2px solid var(--border-color) !important;
  color: var(--text-dim) !important;
  border-radius: 999px !important;
  padding: 0.4rem 0.85rem !important;
  min-height: 44px !important;
  font-weight: 800 !important;
  font-size: 0.8rem !important;
  cursor: pointer !important;
}
html body.page-discover #main .card .discover-why-btn:hover {
  border-color: var(--neon-blue) !important;
  color: var(--neon-blue) !important;
}
html body.page-discover #main .card .discover-why-panel {
  margin-top: 0.6rem !important;
  padding: 0.75rem 0.9rem !important;
  background: var(--bg) !important;
  border: 2px solid var(--border-color) !important;
  border-radius: 12px !important;
  color: var(--text-dim) !important;
  font-size: 0.9rem !important;
  line-height: 1.45 !important;
}

/* ============================================================
   Buttons — chunky brutalist, icon-driven actions
   ============================================================ */
html body.page-discover #main .card .btn-row {
  display: flex !important;
  gap: 0.7rem !important;
  margin-top: 1.3rem !important;
  align-items: stretch !important;
  flex-wrap: wrap !important;
}
html body.page-discover #main .card .btn {
  flex: 1 1 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  background: var(--bg) !important;
  color: var(--text) !important;
  border: 2px solid var(--border-color) !important;
  padding: 0.85rem 1rem !important;
  border-radius: 12px !important;
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  transition: transform 0.08s ease, background 0.12s, color 0.12s, border-color 0.12s !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.4rem !important;
  line-height: 1 !important;
}
html body.page-discover #main .card .discover-card-save {
  position: static !important;
  inset: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  transform: none !important;
  min-width: 44px !important;
  flex: 0 0 44px !important;
}
html body.page-discover .nav-bar a:focus-visible,
html body.page-discover #main .card button:focus-visible,
html body.page-discover #main .card a:focus-visible,
html body.page-discover #main .v6-chip:focus-within,
html body.page-discover #main .v6-choice-row label:focus-within,
html body.page-discover #main .v6-choice-stack label:focus-within,
html body.page-discover .weird-action-sheet button:focus-visible,
html body.page-discover .weird-action-sheet a:focus-visible {
  outline: 3px solid var(--card-accent) !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 6px rgba(255,255,255,0.12) !important;
}
html body.page-discover #main .card .btn i { font-size: 1.15rem !important; }
html body.page-discover #main .card .btn:active { transform: translate(1px,1px) !important; }
html body.page-discover #main .card .btn:hover { background: var(--card-accent) !important; color: #000 !important; border-color: var(--card-accent) !important; }

/* Primary variants (resting = outline, hover/active = filled) */
html body.page-discover #main .card .btn.primary-take { border-color: var(--neon-green) !important; color: var(--neon-green) !important; background: transparent !important; }
html body.page-discover #main .card .btn.primary-take:hover,
html body.page-discover #main .card .btn.primary-take.active { background: var(--neon-green) !important; color: var(--bg) !important; }

html body.page-discover #main .card .btn.primary-media { border-color: var(--neon-blue) !important; color: var(--neon-blue) !important; background: transparent !important; }
html body.page-discover #main .card .btn.primary-media:hover,
html body.page-discover #main .card .btn.primary-media.active { background: var(--neon-blue) !important; color: var(--bg) !important; }

html body.page-discover #main .card .btn.primary-match { border-color: var(--neon-pink) !important; color: var(--neon-pink) !important; background: transparent !important; flex: 2 1 0 !important; }
html body.page-discover #main .card .btn.primary-match:hover,
html body.page-discover #main .card .btn.primary-match.active { background: var(--neon-pink) !important; color: var(--bg) !important; }

html body.page-discover #main .card .btn.saved { border-color: var(--card-accent) !important; color: var(--card-accent) !important; }

/* ---- V6-native special cards ---- */
html body.page-discover #main .v6-special-card .v6-card-meta {
  margin-left: auto !important;
  margin-right: 0.35rem !important;
  color: var(--text-dim) !important;
  font-weight: 900 !important;
}
html body.page-discover #main .v6-special-card {
  max-height: 460px !important;
  overflow: auto !important;
}
html body.page-discover #main .v6-special-card::-webkit-scrollbar {
  width: 8px !important;
}
html body.page-discover #main .v6-special-card::-webkit-scrollbar-thumb {
  background: var(--border-color) !important;
  border-radius: 999px !important;
}
html body.page-discover #main .v6-special-card .v6-special-icon {
  font-size: 2.2rem !important;
  margin-bottom: 0.75rem !important;
}
html body.page-discover #main .v6-question-card {
  border-color: var(--neon-green) !important;
}
html body.page-discover #main .v6-question-card .q-text {
  font-size: clamp(1.55rem, 3.2vw, 2.25rem) !important;
  line-height: 1.03 !important;
  letter-spacing: -0.035em !important;
  margin: 0.7rem 0 1rem !important;
}
html body.page-discover #main .v6-question-card .discover-quiz-options,
html body.page-discover #main .v6-question-card .v6-question-options {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 0.65rem !important;
  margin: 0 0 1rem !important;
  max-width: 100% !important;
}
html body.page-discover #main .v6-question-card .discover-quiz-opt {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 0.7rem !important;
  width: 100% !important;
  min-height: 48px !important;
  padding: 0.78rem 0.9rem !important;
  border: 2px solid var(--border-color) !important;
  border-radius: 12px !important;
  background: var(--bg) !important;
  color: var(--text) !important;
  font-weight: 900 !important;
  text-align: left !important;
  cursor: pointer !important;
  touch-action: manipulation !important;
  -webkit-tap-highlight-color: transparent !important;
}
html body.page-discover #main .v6-question-card .discover-quiz-opt:hover,
html body.page-discover #main .v6-question-card .discover-quiz-opt:focus-visible {
  border-color: var(--neon-green) !important;
  color: var(--neon-green) !important;
  outline: none !important;
}
html body.page-discover #main .v6-question-card .discover-quiz-opt.chosen,
html body.page-discover #main .v6-question-card .discover-quiz-opt.is-disabled.chosen {
  background: var(--neon-green) !important;
  border-color: var(--neon-green) !important;
  color: var(--bg) !important;
}
html body.page-discover #main .v6-question-card .discover-quiz-opt .dqo-text,
html body.page-discover #main .v6-question-card .discover-quiz-opt .dqo-cap {
  min-width: 0 !important;
  overflow-wrap: anywhere !important;
}
html body.page-discover #main .v6-question-card .discover-quiz-opt .dqo-key {
  color: inherit !important;
  font-weight: 950 !important;
}
html body.page-discover #main .v6-question-card .discover-quiz-skip {
  border-color: var(--border-color) !important;
  color: var(--text-dim) !important;
}
html.light-mode body.page-discover #main .v6-question-card .discover-quiz-opt {
  background: #fff !important;
  color: #111 !important;
}
html.light-mode body.page-discover #main .v6-question-card,
html.light-mode body.page-discover #main .v6-question-card .discover-quiz-body,
html.light-mode body.page-discover #main .v6-question-card .q-text {
  color: #111827 !important;
}
html.light-mode body.page-discover #main .v6-question-card .v6-card-meta {
  color: #475569 !important;
}
html body.page-discover #main .v6-today-card {
  border-color: var(--neon-green) !important;
}
html body.page-discover #main .v6-today-stack {
  display: grid !important;
  gap: 0.8rem !important;
  margin-top: 1rem !important;
}
html body.page-discover #main .v6-today-row {
  display: grid !important;
  grid-template-columns: minmax(0,1fr) auto !important;
  align-items: center !important;
  gap: 1rem !important;
  padding: 0.85rem !important;
  border: 2px solid var(--border-color) !important;
  border-radius: 12px !important;
  background: var(--bg) !important;
  color: var(--text) !important;
  text-decoration: none !important;
}
html body.page-discover #main details.v6-today-row summary {
  display: contents !important;
  list-style: none !important;
  cursor: pointer !important;
}
html body.page-discover #main details.v6-today-row summary::-webkit-details-marker { display: none !important; }
html body.page-discover #main .v6-today-row span:first-child {
  min-width: 0 !important;
  display: grid !important;
  gap: 0.2rem !important;
}
html body.page-discover #main .v6-today-row strong {
  color: var(--text) !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
}
html body.page-discover #main .v6-today-row em {
  color: var(--text-dim) !important;
  font-style: normal !important;
  overflow-wrap: anywhere !important;
}
html body.page-discover #main .v6-today-row b {
  color: var(--neon-green) !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
}
html.light-mode body.page-discover #main .v6-today-row {
  background: #ffffff !important;
  color: #111827 !important;
  border-color: #cbd5e1 !important;
}
html.light-mode body.page-discover #main .v6-today-row strong,
html.light-mode body.page-discover #main .v6-today-row i {
  color: #111827 !important;
}
html.light-mode body.page-discover #main .v6-today-row em {
  color: #475569 !important;
}
html.light-mode body.page-discover #main .v6-today-row b {
  color: #65a30d !important;
}
html.light-mode body.page-discover #main .v6-today-row .v6-progress {
  background: #dbe4f0 !important;
}
@media (max-width: 560px) {
  html body.page-discover #main .v6-today-card {
    padding: 0.9rem !important;
  }
  html body.page-discover #main .v6-today-card .card-top {
    margin-bottom: 0.55rem !important;
  }
  html body.page-discover #main .v6-today-card .pill {
    padding: 0.28rem 0.75rem !important;
    font-size: 0.72rem !important;
  }
  html body.page-discover #main .v6-today-card .q-text {
    font-size: 1.12rem !important;
    margin: 0 0 0.55rem 0 !important;
  }
  html body.page-discover #main .v6-today-stack {
    gap: 0.5rem !important;
    margin-top: 0.55rem !important;
  }
  html body.page-discover #main .v6-today-row {
    position: relative !important;
    grid-template-columns: 1fr !important;
    align-items: start !important;
    gap: 0 !important;
    padding: 0.62rem 0.7rem !important;
    min-height: 0 !important;
  }
  html body.page-discover #main .v6-today-row span:first-child {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 22px minmax(0, 1fr) !important;
    gap: 0.1rem 0.55rem !important;
    padding-right: 0 !important;
  }
  html body.page-discover #main .v6-today-row span:first-child > i {
    grid-column: 1 !important;
    grid-row: 1 / span 2 !important;
    margin-top: 0.05rem !important;
  }
  html body.page-discover #main .v6-today-row strong {
    grid-column: 2 !important;
    font-size: 0.82rem !important;
    letter-spacing: 0.03em !important;
  }
  html body.page-discover #main .v6-today-row em {
    grid-column: 2 !important;
    font-size: 0.9rem !important;
    line-height: 1.35 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }
  html body.page-discover #main .v6-today-row .v6-progress {
    grid-column: 2 !important;
    margin-top: 0.18rem !important;
    min-height: 8px !important;
  }
  html body.page-discover #main .v6-today-row b {
    position: static !important;
    grid-column: 1 !important;
    justify-self: start !important;
    margin-left: 2.6rem !important;
    margin-top: 0.2rem !important;
    font-size: 0.95rem !important;
  }
}
html body.page-discover #main .v6-progress,
html body.page-discover #main .v6-result-bar {
  position: relative !important;
  overflow: hidden !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,0.06) !important;
  min-height: 10px !important;
}
html body.page-discover #main .v6-progress > span,
html body.page-discover #main .v6-result-bar > span {
  display: block !important;
  height: 100% !important;
  min-height: 10px !important;
  background: var(--neon-green) !important;
}
html body.page-discover #main .v6-result-bars {
  grid-column: 1 / -1 !important;
  display: grid !important;
  gap: 0.5rem !important;
  margin-top: 0.8rem !important;
}
html body.page-discover #main .v6-result-bar {
  display: grid !important;
  grid-template-columns: minmax(0,1fr) auto !important;
  align-items: center !important;
  padding: 0.45rem 0.65rem !important;
  min-height: 32px !important;
}
html body.page-discover #main .v6-result-bar > span {
  position: absolute !important;
  inset: 0 auto 0 0 !important;
  opacity: 0.22 !important;
}
html body.page-discover #main .v6-result-bar em,
html body.page-discover #main .v6-result-bar strong {
  position: relative !important;
  z-index: 1 !important;
}
html body.page-discover #main .v6-mini-list,
html body.page-discover #main .v6-chip-grid,
html body.page-discover #main .v6-choice-stack {
  display: grid !important;
  gap: 0.75rem !important;
  margin: 1rem 0 !important;
}
html body.page-discover #main .v6-mini-row {
  display: grid !important;
  grid-template-columns: 64px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 0.85rem !important;
  padding: 0.7rem !important;
  border: 2px solid var(--border-color) !important;
  border-radius: 12px !important;
  background: rgba(255,255,255,0.035) !important;
  color: var(--text) !important;
  text-decoration: none !important;
}
html body.page-discover #main .v6-mini-img {
  width: 56px !important;
  height: 78px !important;
  border-radius: 8px !important;
  border: 2px solid var(--border-color) !important;
  background-size: cover !important;
  background-position: center !important;
  background-color: var(--bg) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}
html body.page-discover #main .v6-mini-copy {
  min-width: 0 !important;
  display: grid !important;
  gap: 0.25rem !important;
}
html body.page-discover #main .v6-mini-copy strong {
  color: var(--text) !important;
  font-weight: 900 !important;
  overflow-wrap: anywhere !important;
}
html body.page-discover #main .v6-mini-copy em,
html body.page-discover #main .v6-form-item em {
  color: var(--text-dim) !important;
  font-style: normal !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  font-size: 0.75rem !important;
}
html body.page-discover #main .v6-chip,
html body.page-discover #main .v6-form-item,
html body.page-discover #main .v6-choice-row label,
html body.page-discover #main .v6-choice-stack label {
  min-width: 0 !important;
  border: 2px solid var(--border-color) !important;
  border-radius: 12px !important;
  background: var(--bg) !important;
  color: var(--text) !important;
  padding: 0.75rem !important;
}
html body.page-discover #main .v6-chip input,
html body.page-discover #main .v6-choice-row input,
html body.page-discover #main .v6-choice-stack input {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
html body.page-discover #main .v6-chip span,
html body.page-discover #main .v6-choice-row span,
html body.page-discover #main .v6-choice-stack span {
  display: block !important;
  color: inherit !important;
  font-weight: 900 !important;
  overflow-wrap: anywhere !important;
}
html body.page-discover #main .v6-chip:has(input:checked),
html body.page-discover #main .v6-choice-row label:has(input:checked),
html body.page-discover #main .v6-choice-stack label:has(input:checked) {
  background: var(--neon-green) !important;
  border-color: var(--neon-green) !important;
  color: var(--bg) !important;
}
html body.page-discover #main .v6-choice-row {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0,1fr)) !important;
  gap: 0.55rem !important;
  margin-top: 0.75rem !important;
}
html body.page-discover #main .v6-details summary {
  list-style: none !important;
  cursor: pointer !important;
}
html body.page-discover #main .v6-details summary::-webkit-details-marker { display: none !important; }

/* ---- Keep the native action sheet fully interactive ---- */
html body .weird-action-sheet,
html body .weird-action-sheet * { display: revert; }
html body.page-discover .weird-action-sheet-card,
html body.page-discover .weird-message-share-card {
  background: var(--card-bg) !important;
  color: var(--text) !important;
  border: 2px solid var(--border-color) !important;
  border-radius: 16px 16px 0 0 !important;
  box-shadow: 0 -8px 0 rgba(0,0,0,0.6) !important;
}
html body.page-discover .weird-action-sheet-title,
html body.page-discover .weird-message-share-card h3 {
  color: var(--text) !important;
  font-weight: 900 !important;
}
html body.page-discover .weird-action-sheet-cat,
html body.page-discover .weird-message-share-kicker {
  color: var(--neon-blue) !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
}
html body.page-discover .weird-action-sheet-item,
html body.page-discover .weird-action-sheet-cancel,
html body.page-discover .weird-message-share-tab,
html body.page-discover .weird-message-share-send,
html body.page-discover .weird-message-share-cancel {
  background: var(--bg) !important;
  color: var(--text) !important;
  border: 2px solid var(--border-color) !important;
  border-radius: 12px !important;
  min-height: 44px !important;
}
html body.page-discover .weird-action-sheet-item-danger {
  color: var(--neon-orange) !important;
  border-color: var(--neon-orange) !important;
}
html body.page-discover .weird-action-sheet-thumb,
html body.page-discover .weird-message-share-thumb {
  border: 2px solid var(--border-color) !important;
  background-color: var(--bg) !important;
}

/* ---- Infinite-scroll sentinel/spinner shouldn't grab a grid cell ---- */
html body.page-discover #main .discover-stream > .weird-infscroll,
html body.page-discover #main .discover-stream > .discover-stream-sentinel {
  grid-column: 1 / -1 !important;
}

/* ---- Special stream modules still use legacy PHP markup. Keep their
   functionality, but force the V6 visual language so templates don't mix. ---- */
html body.page-discover #main .discover-stream > .discover-card:not(.card),
html body.page-discover #main .discover-stream > .acct-card,
html body.page-discover #main .discover-stream > .discover-quiz-card {
  display: block !important;
  grid-column: auto !important;
  background: var(--card-bg) !important;
  border: 2px solid var(--border-color) !important;
  border-radius: var(--radius) !important;
  color: var(--text) !important;
  padding: 1.4rem !important;
  margin: 0 !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  max-height: 560px !important;
  box-shadow: var(--sh, 4px 4px 0 rgba(0,0,0,0.75)) !important;
  overflow: auto !important;
}
html body.page-discover #main .discover-stream > .discover-card:not(.card) *,
html body.page-discover #main .discover-stream > .acct-card *,
html body.page-discover #main .discover-stream > .discover-quiz-card * {
  color: inherit;
}
html body.page-discover #main .discover-stream > .discover-card:not(.card) h2,
html body.page-discover #main .discover-stream > .discover-card:not(.card) h3,
html body.page-discover #main .discover-stream > .acct-card h2,
html body.page-discover #main .discover-stream > .acct-card h3,
html body.page-discover #main .discover-stream > .acct-card .dcib-head-title,
html body.page-discover #main .discover-stream > .discover-quiz-card h2,
html body.page-discover #main .discover-stream > .discover-quiz-card h3,
html body.page-discover #main .discover-stream > .discover-quiz-card .discover-quiz-question {
  color: var(--text) !important;
  font-weight: 900 !important;
  letter-spacing: -0.02em !important;
}
html body.page-discover #main .discover-stream > .discover-card:not(.card) p,
html body.page-discover #main .discover-stream > .discover-card:not(.card) small,
html body.page-discover #main .discover-stream > .acct-card p,
html body.page-discover #main .discover-stream > .acct-card small,
html body.page-discover #main .discover-stream > .discover-quiz-card p,
html body.page-discover #main .discover-stream > .discover-quiz-card small {
  color: var(--text-dim) !important;
}
html body.page-discover #main .discover-stream .discover-card-cta-eyebrow,
html body.page-discover #main .discover-stream .discover-card-tag,
html body.page-discover #main .discover-stream .dcib-head-ic,
html body.page-discover #main .discover-stream .dcib-chip,
html body.page-discover #main .discover-stream .discover-compat-summary,
html body.page-discover #main .discover-stream .discover-watch-tonight-chip,
html body.page-discover #main .discover-stream .discover-quiz-kicker,
html body.page-discover #main .discover-stream .discover-quiz-card .pill {
  border: 2px solid var(--neon-blue) !important;
  background: transparent !important;
  color: var(--neon-blue) !important;
  border-radius: var(--radius-pill) !important;
}
html body.page-discover #main .discover-stream .dcib-chip input:checked + span,
html body.page-discover #main .discover-stream .dcib-chip:has(input:checked),
html body.page-discover #main .discover-stream .is-active {
  background: var(--neon-green) !important;
  color: var(--bg) !important;
  border-color: var(--neon-green) !important;
}
html body.page-discover #main .discover-stream .dcib-form,
html body.page-discover #main .discover-stream .dcib-chips,
html body.page-discover #main .discover-stream .discover-watch-tonight-list,
html body.page-discover #main .discover-stream .discover-compat-list,
html body.page-discover #main .discover-stream .dcs-results,
html body.page-discover #main .discover-stream .discover-card-ai-body,
html body.page-discover #main .discover-stream .discover-quiz-card form,
html body.page-discover #main .discover-stream .discover-quiz-card .discover-quiz-options {
  min-width: 0 !important;
  max-width: 100% !important;
}
html body.page-discover #main .discover-stream .dcib-chips,
html body.page-discover #main .discover-stream .discover-watch-tonight-list,
html body.page-discover #main .discover-stream .discover-compat-list,
html body.page-discover #main .discover-stream .dcs-results,
html body.page-discover #main .discover-stream .discover-quiz-card .discover-quiz-options {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.6rem !important;
}
html body.page-discover #main .discover-stream .dcib-chip,
html body.page-discover #main .discover-stream .discover-watch-tonight-row,
html body.page-discover #main .discover-stream .discover-compat-pick,
html body.page-discover #main .discover-stream .dcs-result-card,
html body.page-discover #main .discover-stream .discover-quiz-card .discover-quiz-option {
  flex: 1 1 180px !important;
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}
html body.page-discover #main .discover-stream .discover-card-title,
html body.page-discover #main .discover-stream .discover-card-desc,
html body.page-discover #main .discover-stream .discover-watch-tonight-title,
html body.page-discover #main .discover-stream .discover-compat-title,
html body.page-discover #main .discover-stream .dcib-head-title,
html body.page-discover #main .discover-stream .discover-quiz-card .discover-quiz-question,
html body.page-discover #main .discover-stream .discover-quiz-card label {
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  min-width: 0 !important;
}
html body.page-discover #main .discover-stream .discover-card-actions,
html body.page-discover #main .discover-stream .discover-watch-tonight-actions,
html body.page-discover #main .discover-stream .compat-quiz-actions,
html body.page-discover #main .discover-stream .two-truths-actions,
html body.page-discover #main .discover-stream .dcib-actions,
html body.page-discover #main .discover-stream .discover-quiz-actions {
  display: flex !important;
  gap: 0.7rem !important;
  flex-wrap: wrap !important;
  align-items: stretch !important;
}
html body.page-discover #main .discover-stream .discover-card-actions button,
html body.page-discover #main .discover-stream .discover-watch-tonight-actions a,
html body.page-discover #main .discover-stream .compat-quiz-actions button,
html body.page-discover #main .discover-stream .compat-quiz-actions a,
html body.page-discover #main .discover-stream .two-truths-actions button,
html body.page-discover #main .discover-stream .two-truths-actions a,
html body.page-discover #main .discover-stream .dcib-actions button,
html body.page-discover #main .discover-stream .discover-quiz-card button,
html body.page-discover #main .discover-stream .discover-quiz-card a,
html body.page-discover #main .discover-stream .btn-glow {
  background: var(--bg) !important;
  color: var(--neon-green) !important;
  border: 2px solid var(--neon-green) !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  text-decoration: none !important;
}

html.light-mode body.page-discover #main .discover-stream > .v6-question-card,
html.light-mode body.page-discover #main .discover-stream > .v6-question-card .discover-quiz-body,
html.light-mode body.page-discover #main .discover-stream > .v6-question-card .q-text {
  color: #111827 !important;
}
html.light-mode body.page-discover #main .discover-stream > .v6-question-card .v6-card-meta {
  color: #475569 !important;
}
html.light-mode body.page-discover #main .discover-stream > .v6-question-card .discover-quiz-opt,
html.light-mode body.page-discover #main .discover-stream > .v6-question-card .discover-quiz-skip {
  background: #fff !important;
  color: #111827 !important;
  border-color: #cbd5e1 !important;
}
html.light-mode body.page-discover #main .discover-stream > .v6-question-card .discover-quiz-opt:hover,
html.light-mode body.page-discover #main .discover-stream > .v6-question-card .discover-quiz-opt:focus-visible {
  border-color: var(--neon-green) !important;
  color: #166534 !important;
}

/* Final V6 live override: exact selector proven in browser to stop row stretch. */
#discover-stream.discover-stream > article.discover-card,
#discover-stream.discover-stream > section.discover-card {
  display: block !important;
  align-self: start !important;
  height: auto !important;
  min-height: 0 !important;
}

/* Final V6 light-mode cleanup: the page canvas may be light, but stream cards
   should keep the bold dark/neon V6 surface instead of legacy white cards. */
html.light-mode body.page-discover #main #discover-stream {
  --bg: #050505;
  --card-bg: #111111;
  --text: #ffffff;
  --text-dim: #8b8b8b;
  --border-color: #333333;
}
html.light-mode body.page-discover #main #discover-stream > .discover-card,
html.light-mode body.page-discover #main #discover-stream > .card {
  background: #111111 !important;
  color: #ffffff !important;
  border-color: #333333 !important;
}
html.light-mode body.page-discover #main #discover-stream > .v6-question-card {
  background: #111111 !important;
  background-image: none !important;
  color: #ffffff !important;
  border-color: #333333 !important;
}
html.light-mode body.page-discover #main #discover-stream > .v6-question-card .discover-quiz-body,
html.light-mode body.page-discover #main #discover-stream > .v6-question-card .q-text {
  color: #ffffff !important;
}
html.light-mode body.page-discover #main #discover-stream > .v6-question-card .v6-card-meta {
  color: #b6c2cf !important;
}
html.light-mode body.page-discover #main #discover-stream > .v6-question-card .discover-quiz-opt,
html.light-mode body.page-discover #main #discover-stream > .v6-question-card .discover-quiz-skip,
html.light-mode body.page-discover #main #discover-stream .v6-today-row,
html.light-mode body.page-discover #main #discover-stream .card .btn,
html.light-mode body.page-discover #main #discover-stream .card .v6-card-pct,
html.light-mode body.page-discover #main #discover-stream .card .v6-detail-link,
html.light-mode body.page-discover #main #discover-stream .card button.discover-card-more.btn {
  background: #050505 !important;
  color: #ffffff !important;
  border-color: #333333 !important;
}
html.light-mode body.page-discover #main #discover-stream > .v6-question-card .discover-quiz-opt,
html.light-mode body.page-discover #main #discover-stream > .v6-question-card .discover-quiz-skip {
  color: var(--neon-green) !important;
  border-color: var(--neon-green) !important;
}
html.light-mode body.page-discover #main #discover-stream .v6-today-row strong,
html.light-mode body.page-discover #main #discover-stream .v6-today-row i {
  color: #ffffff !important;
}
html.light-mode body.page-discover #main #discover-stream .v6-today-row em,
html.light-mode body.page-discover #main #discover-stream .card button.discover-card-more.btn {
  color: #8b8b8b !important;
}
html.light-mode body.page-discover #main #discover-stream .v6-today-row b,
html.light-mode body.page-discover #main #discover-stream .card .v6-card-pct {
  color: var(--card-accent, var(--neon-green)) !important;
}
html.light-mode body.page-discover #main #discover-stream .v6-today-row .v6-progress {
  background: rgba(255,255,255,0.08) !important;
}
html.light-mode body.page-discover #main #discover-stream .card .btn:hover,
html.light-mode body.page-discover #main #discover-stream .card .v6-card-pct:hover,
html.light-mode body.page-discover #main #discover-stream .card .v6-detail-link:hover,
html.light-mode body.page-discover #main #discover-stream .card button.discover-card-more.btn:hover {
  background: var(--card-accent, var(--neon-green)) !important;
  color: #000000 !important;
  border-color: var(--card-accent, var(--neon-green)) !important;
}
html.light-mode body.page-discover #main #discover-stream .card .v6-media-overlay .v6-card-pct {
  background: rgba(0,0,0,0.72) !important;
  color: #ffffff !important;
  border-color: rgba(255,255,255,0.24) !important;
}
html.light-mode body.page-discover #main #discover-stream .card .v6-card-pct.v6-card-pct-empty {
  color: #ffffff !important;
}

/* Final V6 question card de-legacy: beat card-rhythm/v5 rotating aqua tones. */
html body.v6-mode.page-discover #main .discover-wrap-signal-board #discover-stream.discover-stream > .v6-question-card.discover-quiz-card-instream,
html.light-mode body.v6-mode.page-discover #main .discover-wrap-signal-board #discover-stream.discover-stream > .v6-question-card.discover-quiz-card-instream {
  --card-accent: var(--neon-green);
  background: var(--card-bg) !important;
  background-image: none !important;
  border: 2px solid var(--border-color) !important;
  color: var(--text) !important;
  box-shadow: var(--sh, 4px 4px 0 rgba(0,0,0,0.75)) !important;
}
html body.v6-mode.page-discover #main .discover-wrap-signal-board #discover-stream.discover-stream > .v6-question-card.discover-quiz-card-instream .pill,
html.light-mode body.v6-mode.page-discover #main .discover-wrap-signal-board #discover-stream.discover-stream > .v6-question-card.discover-quiz-card-instream .pill {
  background: var(--neon-green) !important;
  color: #050505 !important;
  border: 2px solid var(--neon-green) !important;
}
html body.v6-mode.page-discover #main .discover-wrap-signal-board #discover-stream.discover-stream > .v6-question-card.discover-quiz-card-instream .q-text,
html.light-mode body.v6-mode.page-discover #main .discover-wrap-signal-board #discover-stream.discover-stream > .v6-question-card.discover-quiz-card-instream .q-text,
html body.v6-mode.page-discover #main .discover-wrap-signal-board #discover-stream.discover-stream > .v6-question-card.discover-quiz-card-instream .discover-quiz-body,
html.light-mode body.v6-mode.page-discover #main .discover-wrap-signal-board #discover-stream.discover-stream > .v6-question-card.discover-quiz-card-instream .discover-quiz-body {
  color: var(--text) !important;
}
html body.v6-mode.page-discover #main .discover-wrap-signal-board #discover-stream.discover-stream > .v6-question-card.discover-quiz-card-instream .v6-card-meta,
html.light-mode body.v6-mode.page-discover #main .discover-wrap-signal-board #discover-stream.discover-stream > .v6-question-card.discover-quiz-card-instream .v6-card-meta {
  color: var(--text-dim) !important;
}
html body.v6-mode.page-discover #main .discover-wrap-signal-board #discover-stream.discover-stream > .v6-question-card.discover-quiz-card-instream .discover-quiz-opt,
html body.v6-mode.page-discover #main .discover-wrap-signal-board #discover-stream.discover-stream > .v6-question-card.discover-quiz-card-instream .discover-quiz-skip,
html.light-mode body.v6-mode.page-discover #main .discover-wrap-signal-board #discover-stream.discover-stream > .v6-question-card.discover-quiz-card-instream .discover-quiz-opt,
html.light-mode body.v6-mode.page-discover #main .discover-wrap-signal-board #discover-stream.discover-stream > .v6-question-card.discover-quiz-card-instream .discover-quiz-skip {
  background: var(--bg) !important;
  background-image: none !important;
  border-color: var(--neon-green) !important;
  color: var(--neon-green) !important;
}
html body.v6-mode.page-discover #main .discover-wrap-signal-board #discover-stream.discover-stream > .v6-question-card.discover-quiz-card-instream .discover-quiz-opt:hover,
html body.v6-mode.page-discover #main .discover-wrap-signal-board #discover-stream.discover-stream > .v6-question-card.discover-quiz-card-instream .discover-quiz-opt:focus-visible,
html body.v6-mode.page-discover #main .discover-wrap-signal-board #discover-stream.discover-stream > .v6-question-card.discover-quiz-card-instream .discover-quiz-skip:hover,
html body.v6-mode.page-discover #main .discover-wrap-signal-board #discover-stream.discover-stream > .v6-question-card.discover-quiz-card-instream .discover-quiz-skip:focus-visible,
html.light-mode body.v6-mode.page-discover #main .discover-wrap-signal-board #discover-stream.discover-stream > .v6-question-card.discover-quiz-card-instream .discover-quiz-opt:hover,
html.light-mode body.v6-mode.page-discover #main .discover-wrap-signal-board #discover-stream.discover-stream > .v6-question-card.discover-quiz-card-instream .discover-quiz-opt:focus-visible,
html.light-mode body.v6-mode.page-discover #main .discover-wrap-signal-board #discover-stream.discover-stream > .v6-question-card.discover-quiz-card-instream .discover-quiz-skip:hover,
html.light-mode body.v6-mode.page-discover #main .discover-wrap-signal-board #discover-stream.discover-stream > .v6-question-card.discover-quiz-card-instream .discover-quiz-skip:focus-visible {
  background: var(--neon-green) !important;
  color: #050505 !important;
  border-color: var(--neon-green) !important;
}

/* ============================================================
   Admin-preview redesign layer
   A cohesive theme pass over rendered page families. This layer is loaded
   again from footer.php so it lands after page-level inline style blocks.
   ============================================================ */
html body.v6-mode {
  --new-bg: #050505;
  --new-card: #111111;
  --new-card-2: #171717;
  --new-card-3: #0b0b0b;
  --new-line: #333333;
  --new-line-strong: #4a4a4a;
  --new-text: #ffffff;
  --new-muted: #9a9a9a;
  --new-faint: #666666;
  --new-green: #ccff00;
  --new-blue: #00f0ff;
  --new-pink: #b033ff;
  --new-orange: #ff3c00;
  --new-radius: 18px;
  --new-radius-sm: 12px;
  --new-shadow: var(--sh, 4px 4px 0 rgba(0,0,0,0.86));
}
html body.v6-mode,
html.light-mode body.v6-mode {
  background: var(--new-bg) radial-gradient(var(--dot,#222) 1px, transparent 1px) 0 0 / 24px 24px !important;
  color: var(--new-text) !important;
}
html body.v6-mode #main,
html.light-mode body.v6-mode #main {
  background: transparent !important;
  color: var(--new-text) !important;
}
html body.v6-mode #main *,
html body.v6-mode footer * {
  box-sizing: border-box;
}
html body.v6-mode #main :where(.discover-wrap, .profile-hero, .profile-hero-content, .profile-card, .profile-compare, .profile-aura-section, .profile-arg-card, .profile-pvp-h2h, .msg-sidebar, .msg-thread, .msg-taste-hero, .msg-taste-card, .msg-taste-stat, .pvp-hero, .pvp-mode-switch, .pvp-coll, .pvp-coll > details, .pvp-coll-body, .pvp-match, .pvp-gametile, .pvp-lobby-card, .pvp-pack-card, .pvp-pick-card, .pvp-guest-hero, .pvp-guest-card, .search-card, .search-summary, .search-group, .connect-tile, .tm-panel, .tm-person, .tm-stat, .tm-drift-card, .shop-card, .shop-section, .shop-cat, .notif-row, .acct-card, .settings-card, .notify-card, .question-card, .uqc-q-card, .uqc-results, .uqc-card-shell, .toy-card, .admin-card, .faq-hero, .faq-section, .contact-card, .contact-panel, .card, .panel, .box, .well) {
  background: var(--new-card) !important;
  background-image: none !important;
  border: 2px solid var(--new-line) !important;
  border-radius: var(--new-radius) !important;
  box-shadow: var(--new-shadow) !important;
  color: var(--new-text) !important;
  text-shadow: none !important;
}
html body.v6-mode:not(.page-discover) #main > .container {
  width: min(1220px, calc(100vw - 24px)) !important;
  max-width: 1220px !important;
}
html body.v6-mode:not(.page-discover) #main > .container > .wrapper {
  display: block !important;
  overflow: visible !important;
}
html body.v6-mode:not(.page-discover) #main .discover-wrap {
  width: 100% !important;
  max-width: none !important;
  margin: clamp(18px, 2.5vw, 30px) auto !important;
  padding: clamp(1rem, 2.4vw, 1.65rem) !important;
}
html body.v6-mode #main :where(.discover-bar, .search-hero, .uqc-listhead, .tm-hero, .msg-head, .shop-head, .ach-head),
html body.v6-mode:not(.page-discover) #main > .container > .wrapper > :where(h1:first-child, h2:first-child) {
  background: var(--new-card) !important;
  background-image: none !important;
  border: 2px solid var(--new-line) !important;
  border-radius: var(--new-radius) !important;
  box-shadow: var(--new-shadow) !important;
  color: var(--new-text) !important;
  padding: clamp(1rem, 2vw, 1.35rem) !important;
  margin: 0 0 1rem !important;
}
html body.v6-mode #main :where(.discover-bar-title, .search-summary-title, .uqc-listhead-title, .tm-title, .msg-title, .shop-title, .ach-title, h1, h2, h3, h4) {
  color: var(--new-text) !important;
  font-family: 'Space Grotesk', Inter, system-ui, sans-serif !important;
  font-weight: 950 !important;
  letter-spacing: -0.04em !important;
  line-height: 1.05 !important;
}
html body.v6-mode #main :where(.discover-section-sub, .profile-card-sub, .profile-compare-sub, .profile-subheading, .search-sub, .search-card-sub, .tm-sub, .msg-side-card-meta, .msg-thread-head-sub, .pvp-coll-sub, .pvp-match-sub, .shop-sub, .shop-desc, .notif-empty, .blocked-meta, small, .text-muted) {
  color: var(--new-muted) !important;
}
html body.v6-mode #main :where(i, svg) {
  color: inherit;
}
html body.v6-mode #main :where(a:not(.brand):not(.nav-link):not(.weird-avatar-trigger):not(.weird-context-trigger)),
html body.v6-mode footer :where(a) {
  color: var(--new-blue) !important;
  text-decoration: none !important;
}
html body.v6-mode #main :where(a:not(.brand):not(.nav-link):not(.weird-avatar-trigger):not(.weird-context-trigger)):hover,
html body.v6-mode footer :where(a):hover {
  color: var(--new-green) !important;
}
html body.v6-mode #main :where(button:not(:is(.ttt-cell, .c4-drop, .hm-letter, .db-h, .db-v, .mm-card, .gm-cell, .ch-cell, .ch-promo-btn, .ck-cell, .bg-point, .bg-bar-stack, .bg-off-box, .mc-pit, .rps-pick, .nim-btn, .ww-token, .oe-pick, .pig-btn-roll, .pig-btn-bank, .sticks-btn, .chop-hand, .chop-my-hand, .chop-opp-hand, .l21-btn, .l21-btn-hit, .l21-btn-stand, .coin-btn, .tv-choice, .cc-card, .cc-swatch, .cc-draw-btn, .hss-card, .hss-response-card, .hss-judge-card, .hh-board-tool, .table-action-btn, .monog-board-action, .monog-portfolio-row, .monog-btn, .wordsg-btn, .wordsg-btn-alt, .wordsg-btn-danger)), input[type="submit"], input[type="button"], .btn, .btn-glow, .acct-save, .acct-quicklink, .profile-action, .profile-chip, .profile-explore-btn, .profile-compare-chip, .profile-share-link, .profile-toy-sharelink, .toy-copy-btn, .search-go, .search-chip, .search-card-cta, .uqc-cta, .uqc-vote-btn, .pvp-lobby-btn, .pvp-pack-btn, .pvp-pick-control, .pvpgf-pill, .shop-btn, .notif-filter-tab, .notif-toolbar-action, .tm-tool, .tm-mode, .tm-viewtab, summary.btn-glow) {
  min-height: 44px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.48rem !important;
  padding: 0.68rem 0.95rem !important;
  background: var(--new-bg) !important;
  background-image: none !important;
  border: 2px solid var(--new-line) !important;
  border-radius: var(--new-radius-sm) !important;
  color: var(--new-text) !important;
  box-shadow: none !important;
  font-family: Inter, system-ui, sans-serif !important;
  font-size: 0.85rem !important;
  font-weight: 950 !important;
  letter-spacing: 0.035em !important;
  line-height: 1.05 !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  text-shadow: none !important;
}
html body.v6-mode #main .pvp-pick-control[hidden],
html body.v6-mode #main .pvp-wager-cert[hidden],
html body.v6-mode #main .pvp-wager-note[hidden] {
  display: none !important;
}
html body.v6-mode #main :where(button:not(:is(.ttt-cell, .c4-drop, .hm-letter, .db-h, .db-v, .mm-card, .gm-cell, .ch-cell, .ch-promo-btn, .ck-cell, .bg-point, .bg-bar-stack, .bg-off-box, .mc-pit, .rps-pick, .nim-btn, .ww-token, .oe-pick, .pig-btn-roll, .pig-btn-bank, .sticks-btn, .chop-hand, .chop-my-hand, .chop-opp-hand, .l21-btn, .l21-btn-hit, .l21-btn-stand, .coin-btn, .tv-choice, .cc-card, .cc-swatch, .cc-draw-btn, .hss-card, .hss-response-card, .hss-judge-card, .hh-board-tool, .table-action-btn, .monog-board-action, .monog-portfolio-row, .monog-btn, .wordsg-btn, .wordsg-btn-alt, .wordsg-btn-danger)), input[type="submit"], input[type="button"], .btn, .btn-glow, .acct-save, .acct-quicklink, .profile-action, .profile-chip, .profile-explore-btn, .profile-compare-chip, .profile-share-link, .profile-toy-sharelink, .toy-copy-btn, .search-go, .search-chip, .search-card-cta, .uqc-cta, .uqc-vote-btn, .pvp-lobby-btn, .pvp-pack-btn, .pvp-pick-control, .pvpgf-pill, .shop-btn, .notif-filter-tab, .notif-toolbar-action, .tm-tool, .tm-mode, .tm-viewtab, summary.btn-glow):hover,
html body.v6-mode #main :where(button:not(:is(.ttt-cell, .c4-drop, .hm-letter, .db-h, .db-v, .mm-card, .gm-cell, .ch-cell, .ch-promo-btn, .ck-cell, .bg-point, .bg-bar-stack, .bg-off-box, .mc-pit, .rps-pick, .nim-btn, .ww-token, .oe-pick, .pig-btn-roll, .pig-btn-bank, .sticks-btn, .chop-hand, .chop-my-hand, .chop-opp-hand, .l21-btn, .l21-btn-hit, .l21-btn-stand, .coin-btn, .tv-choice, .cc-card, .cc-swatch, .cc-draw-btn, .hss-card, .hss-response-card, .hss-judge-card, .hh-board-tool, .table-action-btn, .monog-board-action, .monog-portfolio-row, .monog-btn, .wordsg-btn, .wordsg-btn-alt, .wordsg-btn-danger)), input[type="submit"], input[type="button"], .btn, .btn-glow, .acct-save, .acct-quicklink, .profile-action, .profile-chip, .profile-explore-btn, .profile-compare-chip, .profile-share-link, .profile-toy-sharelink, .toy-copy-btn, .search-go, .search-chip, .search-card-cta, .uqc-cta, .uqc-vote-btn, .pvp-lobby-btn, .pvp-pack-btn, .pvp-pick-control, .pvpgf-pill, .shop-btn, .notif-filter-tab, .notif-toolbar-action, .tm-tool, .tm-mode, .tm-viewtab, summary.btn-glow):focus-visible {
  border-color: var(--new-green) !important;
  color: var(--new-green) !important;
  outline: none !important;
}
html body.v6-mode #main :where(.is-active, .active, [aria-current="page"], .equipped, .is-current, .is-on, .profile-action-primary, .btn.primary, .btn-glow.primary, .search-go, .uqc-cta, .pvp-mode-tab.is-active, .pvpgf-pill.is-active, .shop-btn.equipped) {
  border-color: var(--new-green) !important;
}
html body.v6-mode #main :where(.acct-quicklink.is-active, .profile-action-primary, .btn.primary, .btn-glow.primary, .search-go, .uqc-cta, .pvp-mode-tab.is-active, .pvpgf-pill.is-active, .shop-btn.equipped) {
  background: var(--new-green) !important;
  background-image: none !important;
  color: var(--new-bg) !important;
}
html body.v6-mode #main :where(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), textarea, select) {
  background: var(--new-bg) !important;
  background-image: none !important;
  border: 2px solid var(--new-line) !important;
  border-radius: var(--new-radius-sm) !important;
  color: var(--new-text) !important;
  box-shadow: none !important;
  min-height: 44px !important;
  padding: 0.7rem 0.85rem !important;
}
html body.v6-mode #main :where(input:not([type="checkbox"]):not([type="radio"]):focus, textarea:focus, select:focus) {
  border-color: var(--new-blue) !important;
  outline: 3px solid rgba(0,240,255,0.18) !important;
  outline-offset: 2px !important;
}
html body.v6-mode #main :where(.pill, .badge, .tag, .chip, .toy-badge, .pvp-badge, .shop-price, .search-card-tag, .uqc-card-pill, .uqc-q-meta-chip, .profile-hero-title, .profile-hero-taste-tag, .profile-hero-pct, .profile-circle-pill, .profile-match-count, .profile-pvp-h2h-game, .verdict-pill, .admin-tab-count) {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.35rem !important;
  background: var(--new-bg) !important;
  background-image: none !important;
  border: 2px solid var(--new-line) !important;
  border-radius: 999px !important;
  color: var(--new-text) !important;
  box-shadow: none !important;
  font-weight: 900 !important;
}
html body.v6-mode #main :where(.badge-danger, .is-danger, .is-error, .pvp-badge-loss) {
  border-color: var(--new-orange) !important;
  color: var(--new-orange) !important;
}
html body.v6-mode #main :where(.is-success, .is-ok, .pvp-badge-win, .pvp-badge-accepted) {
  border-color: var(--new-green) !important;
  color: var(--new-green) !important;
}
/* Action-required badges (the user must act NOW: it's your turn, or an invite
   is waiting on your acceptance) get a SOLID neon-green fill so they read as
   the primary CTA at a glance — not just an outlined status. The green status
   badges above (win / joined / generic success) intentionally stay OUTLINED so
   only true "do something" items pop. Keep this list to real user actions. */
html body.v6-mode #main :where(.pvp-badge-yourturn, .pvp-badge-accept) {
  background: var(--new-green) !important;
  background-image: none !important;
  border-color: var(--new-green) !important;
  color: var(--new-bg) !important;
  -webkit-text-fill-color: var(--new-bg) !important;
}
/* Light mode: the generic body-text dimming rule (…:where(…span…){color:var(--text-dim)})
   has higher specificity and would grey out this badge's dark text on the neon fill.
   Re-assert dark text with an equal-specificity, later-in-source override. */
html.light-mode body.v6-mode:not(.page-discover) #main :where(.pvp-badge-yourturn, .pvp-badge-accept) {
  color: var(--new-bg) !important;
}

/* Profile/account */
html body.v6-mode.page-profile #main .acct-quicklinks,
html body.v6-mode.page-editinfo #main .acct-quicklinks,
html body.v6-mode.page-answers #main .acct-quicklinks,
html body.v6-mode.page-notify-prefs #main .acct-quicklinks,
html body.v6-mode.page-reset-password #main .acct-quicklinks {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.6rem !important;
  padding: 0 !important;
  margin: 0 0 1rem !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
html body.v6-mode.page-profile #main .profile-hero {
  overflow: hidden !important;
  padding: clamp(1rem, 2.3vw, 1.45rem) !important;
  margin: 0 0 1.1rem !important;
}
html body.v6-mode.page-profile #main .profile-hero-bg {
  display: none !important;
}
html body.v6-mode.page-profile #main .profile-hero-content {
  display: grid !important;
  grid-template-columns: minmax(128px, 170px) minmax(0, 1fr) minmax(240px, 0.42fr) !important;
  gap: clamp(1rem, 2vw, 1.6rem) !important;
  align-items: start !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
}
html body.v6-mode.page-profile #main .profile-hero-avatar-col {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.75rem !important;
  align-items: stretch !important;
}
html body.v6-mode.page-profile #main :where(.profile-hero-avatar-zoom, .profile-hero-avatar-frame, .profile-hero-avatar, .profile-hero-av-wrap, .profile-hero-av-wrap img) {
  width: 126px !important;
  height: 126px !important;
  max-width: 100% !important;
  border-radius: 18px !important;
}
html body.v6-mode.page-profile #main .profile-hero-avatar-zoom {
  background: #000 !important;
  border: 2px solid var(--new-line) !important;
  padding: 10px !important;
  box-shadow: none !important;
}
html body.v6-mode.page-profile #main .profile-hero-avatar-zoom:hover {
  border-color: var(--new-green) !important;
}
html body.v6-mode.page-profile #main .profile-hero-name {
  margin: 0 0 0.6rem !important;
  font-size: clamp(2rem, 5vw, 4rem) !important;
}
html body.v6-mode.page-profile #main .profile-hero-meta,
html body.v6-mode.page-profile #main .profile-hero-actions-main,
html body.v6-mode.page-profile #main .profile-hero-actions-safety,
html body.v6-mode.page-profile #main .profile-chips,
html body.v6-mode.page-profile #main .profile-explore,
html body.v6-mode.page-profile #main .profile-circles-row {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.55rem !important;
  padding: 0 !important;
  margin: 0.85rem 0 0 !important;
  list-style: none !important;
}
html body.v6-mode.page-profile #main .profile-hero-meta li {
  background: var(--new-bg) !important;
  border: 2px solid var(--new-line) !important;
  border-radius: 999px !important;
  color: var(--new-text) !important;
  padding: 0.45rem 0.75rem !important;
  font-weight: 800 !important;
}
html body.v6-mode.page-profile #main .profile-hero-rail,
html body.v6-mode.page-profile #main .profile-hero-actions {
  min-width: 0 !important;
}
html body.v6-mode.page-profile #main .profile-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 1rem !important;
}
html body.v6-mode.page-profile #main .profile-grid-single {
  grid-template-columns: 1fr !important;
}
html body.v6-mode.page-profile #main :where(.profile-bio, .profile-about-block, .profile-pin-card, .profile-arg-side, .profile-map-bridge, .profile-match-row, .profile-toy-share [style*="display:flex"]) {
  background: var(--new-bg) !important;
  background-image: none !important;
  border: 2px solid var(--new-line) !important;
  border-radius: var(--new-radius-sm) !important;
  color: var(--new-text) !important;
  box-shadow: none !important;
}
html body.v6-mode.page-profile #main :where(.profile-about-block, .profile-pin-card, .profile-arg-side, .profile-map-bridge, .profile-match-row, .profile-toy-share [style*="display:flex"]) {
  padding: 0.85rem !important;
}
html body.v6-mode.page-profile #main .profile-match-list {
  display: grid !important;
  gap: 0.7rem !important;
}
html body.v6-mode.page-profile #main .profile-match-row {
  display: grid !important;
  grid-template-columns: minmax(160px, 0.9fr) minmax(140px, 1fr) auto !important;
  align-items: center !important;
  gap: 0.8rem !important;
}
html body.v6-mode.page-profile #main .profile-match-bar,
html body.v6-mode.page-profile #main :where(.profile-match-fill, .pf-aura-bar-fill) {
  border-radius: 999px !important;
}
html body.v6-mode.page-profile #main .profile-match-bar {
  background: rgba(255,255,255,0.08) !important;
  border: 2px solid var(--new-line) !important;
  height: 14px !important;
  overflow: hidden !important;
}
html body.v6-mode.page-profile #main .profile-match-fill {
  background: var(--new-green) !important;
  height: 100% !important;
}
html body.v6-mode.page-profile #main :where(.profile-aura-section, .profile-aura-section *, .pf-aura-card, .pf-aura-pill, .pf-aura-chip) {
  text-shadow: none !important;
}
html body.v6-mode.page-profile #main :where(.profile-aura-section, .pf-aura-card) {
  background: var(--new-card) !important;
  background-image: none !important;
  border-color: var(--new-line) !important;
}

/* Messages */
html body.v6-mode.page-messages #main .msg-shell {
  display: grid !important;
  grid-template-columns: minmax(290px, 360px) minmax(0, 1fr) !important;
  gap: 1rem !important;
  margin-top: 1rem !important;
  min-height: min(760px, calc(100dvh - var(--v6-nav-height, 96px) - 130px)) !important;
}
html body.v6-mode.page-messages #main .msg-sidebar,
html body.v6-mode.page-messages #main .msg-thread {
  padding: 0 !important;
  overflow: hidden !important;
}
html body.v6-mode.page-messages #main .msg-compose-actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0.6rem !important;
  padding: 0.9rem !important;
  background: var(--new-card-2) !important;
  border-bottom: 2px solid var(--new-line) !important;
}
html body.v6-mode.page-messages #main :where(.msg-new-dm-btn, .msg-new-group-btn) {
  width: 100% !important;
}
html body.v6-mode.page-messages #main .msg-side-tabs {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 0.45rem !important;
  margin: 0 !important;
  padding: 0.9rem !important;
  background: var(--new-card) !important;
  border: 0 !important;
  border-bottom: 2px solid var(--new-line) !important;
  border-radius: 0 !important;
}
html body.v6-mode.page-messages #main .msg-side-tabs button {
  position: relative !important;
  overflow: visible !important;
  min-width: 0 !important;
  padding: 0.6rem 0.28rem !important;
  font-size: 0.68rem !important;
  gap: 4px !important;
}
html body.v6-mode.page-messages #main .msg-side-tabs button i {
  font-size: 0.66rem !important;
}
html body.v6-mode.page-messages #main .msg-side-tabs button.is-active {
  background: var(--new-green) !important;
  color: var(--new-bg) !important;
  border-color: var(--new-green) !important;
}
/* Count badges float as a top-right corner pill so the narrow rail column
   only needs to fit icon+label (never clipped). Anchored right, they grow
   leftward, so multi-digit counts stay inside the inter-tab gap. Zero
   counts are not rendered at all (messages.php only emits the span > 0). */
html body.v6-mode.page-messages #main .msg-side-tabs .msg-side-tab-count {
  position: absolute !important;
  top: -7px !important;
  right: -3px !important;
  min-width: 16px !important;
  height: 16px !important;
  padding: 0 4px !important;
  font-size: 0.6rem !important;
  font-weight: 800 !important;
  line-height: 12px !important;
  border: 2px solid var(--new-card, #000) !important;
  box-shadow: none !important;
}
html body.v6-mode.page-messages #main .msg-side-tabs button.is-active .msg-side-tab-count {
  background: var(--new-bg, #050505) !important;
  color: var(--new-green, #ccff00) !important;
  border-color: var(--new-green, #ccff00) !important;
}
html body.v6-mode.page-messages #main .msg-side-list {
  padding: 0.9rem !important;
  gap: 0.65rem !important;
  scrollbar-color: var(--new-line-strong) transparent !important;
}
html body.v6-mode.page-messages #main .msg-side-card {
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr) !important;
  gap: 0.7rem !important;
  align-items: center !important;
  padding: 0.75rem !important;
  background: var(--new-bg) !important;
  border: 2px solid var(--new-line) !important;
  border-radius: var(--new-radius-sm) !important;
  box-shadow: none !important;
}
html body.v6-mode.page-messages #main .msg-side-card:hover,
html body.v6-mode.page-messages #main .msg-side-card.is-active {
  border-color: var(--new-green) !important;
  color: var(--new-text) !important;
  transform: none !important;
}
html body.v6-mode.page-messages #main .msg-side-card img,
html body.v6-mode.page-messages #main .msg-thread-avatar-link,
html body.v6-mode.page-messages #main .msg-avatar {
  width: 42px !important;
  height: 42px !important;
  border-radius: 12px !important;
  border: 2px solid var(--new-line) !important;
  background: #000 !important;
  object-fit: cover !important;
}
html body.v6-mode.page-messages #main .msg-side-pin {
  opacity: 1 !important;
  background: #000 !important;
  border: 2px solid var(--new-line) !important;
  color: var(--new-muted) !important;
  transform: none !important;
}
html body.v6-mode.page-messages #main .msg-side-card.is-active img {
  box-shadow: 0 0 0 2px var(--new-green) !important;
}
html body.v6-mode.page-messages #main .msg-side-pin.is-active {
  border-color: var(--new-green) !important;
  color: var(--new-green) !important;
}
html body.v6-mode.page-messages #main .msg-thread-head {
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
  padding: 0.95rem 1.05rem !important;
  background: var(--new-card-2) !important;
  border-bottom: 2px solid var(--new-line) !important;
}
html body.v6-mode.page-messages #main .msg-thread-body {
  background: var(--new-card) !important;
  padding: 1rem !important;
}
html body.v6-mode.page-messages #main .msg-row {
  width: 100% !important;
  display: flex !important;
  gap: 0.6rem !important;
  align-items: flex-end !important;
  margin: 0.55rem 0 !important;
}
html body.v6-mode.page-messages #main .msg-row-me {
  justify-content: flex-end !important;
}
html body.v6-mode.page-messages #main .msg-bubble {
  width: fit-content !important;
  max-width: min(680px, 78%) !important;
  min-width: min(240px, 75vw) !important;
  background: var(--new-bg) !important;
  background-image: none !important;
  border: 2px solid var(--new-line) !important;
  border-radius: 16px !important;
  color: var(--new-text) !important;
  padding: 0.72rem 0.85rem !important;
  box-shadow: none !important;
}
html body.v6-mode.page-messages #main .msg-row-me .msg-bubble {
  border-color: var(--new-blue) !important;
}
html body.v6-mode.page-messages #main .msg-row-them .msg-bubble {
  border-color: var(--new-line-strong) !important;
}
html body.v6-mode.page-messages #main :where(.msg-bubble-meta, .msg-bubble-name, .msg-bubble-from, .msg-reply-text, .msg-source-meta) {
  color: var(--new-muted) !important;
}
html body.v6-mode.page-messages #main :where(.msg-compose, .msg-new-group-field, .msg-reply-preview, .msg-share-preview) {
  background: var(--new-bg) !important;
  background-image: none !important;
  border: 2px solid var(--new-line) !important;
  border-radius: var(--new-radius-sm) !important;
  color: var(--new-text) !important;
}

/* Play / games */
html body.v6-mode.page-pvp #main .pvp-hero,
html body.v6-mode.page-pvp #main .pvp-mode-switch,
html body.v6-mode.page-pvp #main .pvp-coll,
html body.v6-mode.page-pvp-game #main :where(.pvp-game-shell, .pvp-game-board, .pvp-game-panel),
html body.v6-mode.page-monopoly #main :where(.mono-shell, .mono-board, .mono-panel),
html body.v6-mode.page-mono-game #main :where(.mono-shell, .mono-board, .mono-panel),
html body.v6-mode.page-words #main :where(.words-shell, .words-board, .words-panel),
html body.v6-mode.page-words-game #main :where(.words-shell, .words-board, .words-panel) {
  background: var(--new-card) !important;
  background-image: none !important;
  border: 2px solid var(--new-line) !important;
  border-radius: var(--new-radius) !important;
  box-shadow: var(--new-shadow) !important;
}
html body.v6-mode.page-pvp #main .pvp-hero-icon,
html body.v6-mode.page-pvp #main .pvp-gametile-icon,
html body.v6-mode.page-pvp #main .pvp-guest-card-icon {
  background: var(--new-green) !important;
  background-image: none !important;
  color: var(--new-bg) !important;
  border: 2px solid var(--new-green) !important;
  box-shadow: none !important;
}
html body.v6-mode.page-pvp #main .pvp-mode-switch {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 0.65rem !important;
  padding: 0.65rem !important;
}
html body.v6-mode.page-pvp #main .pvp-mode-tab {
  background: var(--new-bg) !important;
  background-image: none !important;
  border: 2px solid var(--new-line) !important;
  border-radius: var(--new-radius-sm) !important;
  color: var(--new-text) !important;
  box-shadow: none !important;
}
html body.v6-mode.page-pvp #main .pvp-mode-tab.is-active {
  background: var(--new-green) !important;
  color: var(--new-bg) !important;
  border-color: var(--new-green) !important;
}
html body.v6-mode.page-pvp #main .pvp-mode-tab.is-active * {
  color: var(--new-bg) !important;
}
html body.v6-mode.page-pvp #main .pvp-coll {
  contain: none !important;
  overflow: hidden !important;
}
html body.v6-mode.page-pvp #main .pvp-coll > details,
html body.v6-mode.page-pvp #main .pvp-coll-body {
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}
html body.v6-mode.page-pvp #main .pvp-coll > details > summary {
  background: var(--new-card-2) !important;
  border-bottom: 2px solid var(--new-line) !important;
}
html body.v6-mode.page-pvp #main .pvp-coll-title {
  color: var(--new-text) !important;
  text-shadow: none !important;
}
html body.v6-mode.page-pvp #main :where(.pvp-match, .pvp-gametile, .pvp-lobby-card, .pvp-pack-card, .pvp-pick-card, .pvp-guest-card, .pvp-urgency, .pvpgf-bar, .pvp-picker-search-empty, .pvpgf-empty) {
  background: var(--new-bg) !important;
  background-image: none !important;
  border: 2px solid var(--new-line) !important;
  border-radius: var(--new-radius-sm) !important;
  color: var(--new-text) !important;
  box-shadow: none !important;
}
html body.v6-mode.page-pvp #main :where(.pvp-match:hover, .pvp-gametile:hover, .pvp-lobby-card:hover, .pvp-pack-card:hover) {
  border-color: var(--new-green) !important;
  transform: none !important;
}
html body.v6-mode.page-pvp #main .pvp-match {
  min-height: 64px !important;
}
html body.v6-mode.page-pvp #main .pvp-match-icon,
html body.v6-mode.page-pvp #main .pvp-match-avatar {
  border-radius: 12px !important;
  background: #000 !important;
  border: 2px solid var(--new-line) !important;
  color: var(--new-green) !important;
}
/* Light mode: the pvp hub rows (.pvp-match) are intentionally force-dark in BOTH
   themes (rule above). The base a.pvp-match link sets a dark -webkit-text-fill-color
   (#111827) for light mode that ALL descendants inherit, painting their text
   dark-on-dark (invisible title, unreadable meta). Reset the fill to currentColor
   so each element paints its own color, then restore readable colors for the two
   elements whose base light-mode color is itself dark (title + side name). */
html.light-mode body.v6-mode.page-pvp #main .pvp-match * {
  -webkit-text-fill-color: currentColor !important;
}
html.light-mode body.v6-mode.page-pvp #main .pvp-match-title {
  color: var(--new-text) !important;
}
html.light-mode body.v6-mode.page-pvp #main .pvp-match-side-name {
  color: rgba(255, 255, 255, 0.82) !important;
}

/* Discovery/search/connect/questions/shop/taste/account tails */
html body.v6-mode #main :where(.search-group-grid, .search-grid, .connect-grid, .tm-grid, .tm-people, .shop-grid, .uqc-cards, .dc-grid, .ach-grid, .blocked-list) {
  display: grid !important;
  gap: 1rem !important;
}
html body.v6-mode #main :where(.search-group-grid, .search-grid, .connect-grid, .shop-grid, .dc-grid, .ach-grid) {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)) !important;
}
html body.v6-mode #main :where(.tm-grid, .tm-people, .uqc-cards, .blocked-list) {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
}
html body.v6-mode #main :where(.search-card, .connect-tile, .tm-person, .shop-card, .notif-row, .uqc-card-shell, .question-card, .toy-card, .blocked-item, .dc-card, .ach-card) {
  overflow: hidden !important;
}
html body.v6-mode #main :where(.search-card-media, .connect-tile-avatar, .tm-person-avatar, .shop-preview, .notif-icon, .uqc-listhead-avatar, .uqc-q-byline-av, .profile-avatar, .blocked-avatar, .toy-card-icon, .dc-card-icon) {
  background: #000 !important;
  border: 2px solid var(--new-line) !important;
  border-radius: 14px !important;
  color: var(--new-green) !important;
  box-shadow: none !important;
}
html body.v6-mode #main :where(.uqc-q-card, .uqc-results) {
  border-color: var(--new-green) !important;
}
html body.v6-mode #main :where(.uqc-bar-track, .tm-bar, .dc-progress-bar, .v6-progress, .profile-match-bar) {
  background: rgba(255,255,255,0.08) !important;
  border: 2px solid var(--new-line) !important;
  border-radius: 999px !important;
  overflow: hidden !important;
}
html body.v6-mode #main :where(.uqc-bar-fill, .tm-bar > span, .dc-progress-bar > span, .v6-progress > span) {
  background: var(--new-green) !important;
}
html body.v6-mode #main table {
  background: var(--new-card) !important;
  border: 2px solid var(--new-line) !important;
  border-radius: var(--new-radius) !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  overflow: hidden !important;
}
html body.v6-mode #main :where(th, td) {
  border-bottom: 1px solid var(--new-line) !important;
  color: var(--new-text) !important;
  padding: 0.8rem !important;
}
html body.v6-mode #main th {
  color: var(--new-green) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
}

/* Admin and secondary/static pages */
html body.v6-mode #main :where(.admin-shell, .admin-panel, .admin-section, .admin-card, .admin-table-wrap, .faq-wrap, .contact-wrap, .legal-wrap, .settings-shell, .streaming-settings-shell) {
  background: var(--new-card) !important;
  background-image: none !important;
  border: 2px solid var(--new-line) !important;
  border-radius: var(--new-radius) !important;
  box-shadow: var(--new-shadow) !important;
  color: var(--new-text) !important;
}
html body.v6-mode #main :where(.admin-tabs, .admin-filter-row, .admin-actions, .notif-toolbar, .search-filters, .streaming-settings-actions) {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.6rem !important;
}
html body.v6-mode #main :where(.admin-tab, .admin-btn, .filter-chip, .admin-theme-opt) {
  background: var(--new-bg) !important;
  background-image: none !important;
  border: 2px solid var(--new-line) !important;
  border-radius: var(--new-radius-sm) !important;
  color: var(--new-text) !important;
  box-shadow: none !important;
  min-height: 42px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.45rem !important;
  padding: 0.58rem 0.85rem !important;
  font-weight: 900 !important;
}
html body.v6-mode #main :where(.admin-tab.is-active, .admin-tab-v6.is-active, .filter-chip.is-active, .admin-theme-opt.is-active) {
  border-color: var(--new-green) !important;
  color: var(--new-green) !important;
}
html body.v6-mode #main .admin-theme-switch {
  background: var(--new-card) !important;
  border: 2px solid var(--new-line) !important;
  border-radius: var(--new-radius-sm) !important;
}
html body.v6-mode #main .admin-theme-switch-lab { color: var(--new-muted) !important; }
html body.v6-mode #main .admin-theme-opt.is-active { background: rgba(var(--ng-rgb),0.12) !important; }

/* Footer */
html body.v6-mode footer.weird-native-footer {
  background: #000 !important;
  background-image: none !important;
  border-top: 2px solid var(--new-line) !important;
  color: var(--new-muted) !important;
  padding: 1.6rem 0 max(1.6rem, env(safe-area-inset-bottom)) !important;
}
html body.v6-mode footer .weird-footer-shell {
  width: min(1180px, calc(100vw - 24px)) !important;
}
html body.v6-mode footer :where(.weird-footer-critical a, .weird-footer-group, .weird-footer-share) {
  background: var(--new-card) !important;
  background-image: none !important;
  border: 2px solid var(--new-line) !important;
  border-radius: var(--new-radius-sm) !important;
  color: var(--new-text) !important;
  box-shadow: none !important;
}
html body.v6-mode footer .weird-footer-critical a:hover,
html body.v6-mode footer .weird-footer-critical a:focus-visible {
  border-color: var(--new-green) !important;
  color: var(--new-green) !important;
  outline: none !important;
}

@media (max-width: 900px) {
  html body.v6-mode.page-profile #main .profile-hero-content,
  html body.v6-mode.page-messages #main .msg-shell {
    grid-template-columns: 1fr !important;
  }
  html body.v6-mode.page-profile #main .profile-hero-avatar-col {
    max-width: 220px !important;
  }
  html body.v6-mode.page-profile #main .profile-grid {
    grid-template-columns: 1fr !important;
  }
  html body.v6-mode.page-pvp #main .pvp-mode-switch {
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 640px) {
  html body.v6-mode:not(.page-discover) #main > .container {
    width: min(100%, calc(100vw - 18px)) !important;
  }
  html body.v6-mode:not(.page-discover) #main .discover-wrap {
    margin-top: 0.8rem !important;
    padding: 0.8rem !important;
    border-radius: 16px !important;
  }
  html body.v6-mode #main :where(.discover-bar, .search-hero, .uqc-listhead, .tm-hero, .msg-head, .shop-head, .ach-head) {
    padding: 0.9rem !important;
  }
  html body.v6-mode #main :where(.discover-bar-title, h1) {
    font-size: clamp(1.55rem, 8vw, 2.35rem) !important;
  }
  html body.v6-mode.page-messages #main .msg-side-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  html body.v6-mode.page-messages #main .msg-bubble {
    max-width: 86% !important;
    min-width: min(210px, 72vw) !important;
  }
  html body.v6-mode.page-profile #main .profile-match-row {
    grid-template-columns: 1fr !important;
  }
  html body.v6-mode #main table {
    display: block !important;
    overflow-x: auto !important;
  }
}

/* Final polish fixes from visual spot-checks. Keep these last. */
html.light-mode body.v6-mode.page-messages #main :where(.discover-wrap, .msg-shell, .msg-sidebar, .msg-thread, .msg-thread-head, .msg-thread-body, .msg-side-tabs, .msg-side-list, .msg-compose-actions),
html body.v6-mode.page-messages #main :where(.msg-shell, .msg-sidebar, .msg-thread, .msg-thread-head, .msg-thread-body, .msg-side-tabs, .msg-side-list, .msg-compose-actions) {
  background: var(--new-card) !important;
  background-image: none !important;
  color: var(--new-text) !important;
  filter: none !important;
  backdrop-filter: none !important;
}
html.light-mode body.v6-mode.page-messages #main :where(.msg-side-card, .msg-bubble, .msg-new-group-field, .msg-compose, .msg-reply-preview, .msg-share-preview),
html body.v6-mode.page-messages #main :where(.msg-side-card, .msg-bubble, .msg-new-group-field, .msg-compose, .msg-reply-preview, .msg-share-preview) {
  background: var(--new-bg) !important;
  background-image: none !important;
  color: var(--new-text) !important;
  border-color: var(--new-line) !important;
}
html.light-mode body.v6-mode.page-messages #main :where(.msg-side-card *, .msg-thread *, .msg-bubble *, .msg-compose *),
html body.v6-mode.page-messages #main :where(.msg-side-card *, .msg-thread *, .msg-bubble *, .msg-compose *) {
  text-shadow: none !important;
}
html.light-mode body.v6-mode.page-messages #main :where(.msg-side-card-name, .msg-thread-head-name, .msg-thread-head-name-text, .msg-bubble-text, .msg-bubble p, .msg-side-card strong),
html body.v6-mode.page-messages #main :where(.msg-side-card-name, .msg-thread-head-name, .msg-thread-head-name-text, .msg-bubble-text, .msg-bubble p, .msg-side-card strong) {
  color: var(--new-text) !important;
}
html.light-mode body.v6-mode.page-messages #main :where(.msg-side-card-meta, .msg-thread-head-sub, .msg-bubble-meta, .msg-source-meta),
html body.v6-mode.page-messages #main :where(.msg-side-card-meta, .msg-thread-head-sub, .msg-bubble-meta, .msg-source-meta) {
  color: var(--new-muted) !important;
}

html body.v6-mode.page-profile #main .profile-hero-rail,
html body.v6-mode.page-profile #main .profile-hero-actions {
  background: var(--new-bg) !important;
  background-image: none !important;
  border: 2px solid var(--new-line) !important;
  border-radius: var(--new-radius-sm) !important;
  box-shadow: none !important;
  color: var(--new-text) !important;
  min-width: 0 !important;
}
html body.v6-mode.page-profile #main .profile-hero-rail {
  padding: 0.75rem !important;
}
html body.v6-mode.page-profile #main .profile-hero-actions {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 0.65rem !important;
  padding: 0 !important;
  border: 0 !important;
}
html body.v6-mode.page-profile #main :where(.profile-hero-actions-main, .profile-hero-actions-safety) {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 0.55rem !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
html body.v6-mode.page-profile #main .profile-hero-actions :where(.profile-action, button.profile-action) {
  width: 100% !important;
  justify-content: flex-start !important;
  color: var(--new-text) !important;
}
html.light-mode body.v6-mode.page-profile #main .profile-hero-rail,
html.light-mode body.v6-mode.page-profile #main .profile-hero-actions {
  background: var(--new-bg) !important;
  color: var(--new-text) !important;
}

html body.v6-mode.page-pvp #main :where(.pvp-solo-winboards, .pvp-solo-winboard, .pvp-multi-wins) {
  min-width: 0 !important;
}
html body.v6-mode.page-pvp #main .pvp-solo-winboard {
  background: var(--new-bg) !important;
  background-image: none !important;
  border: 2px solid var(--new-line) !important;
  border-radius: var(--new-radius) !important;
  color: var(--new-text) !important;
  box-shadow: none !important;
}
html body.v6-mode.page-pvp #main .pvp-solo-winboard-head {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 0.85rem !important;
  min-width: 0 !important;
}
html body.v6-mode.page-pvp #main .pvp-solo-winboard-head > div:first-child {
  min-width: 0 !important;
  flex: 1 1 auto !important;
}
html body.v6-mode.page-pvp #main .pvp-solo-winboard-head h3 {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  color: var(--new-text) !important;
}
html body.v6-mode.page-pvp #main .pvp-solo-winboard-head p {
  color: var(--new-muted) !important;
}
html body.v6-mode.page-pvp #main .pvp-solo-wintoggle {
  flex: 0 0 auto !important;
}
html body.v6-mode.page-pvp #main .pvp-solo-wintoggle-btn {
  background: var(--new-card) !important;
  background-image: none !important;
  border: 2px solid var(--new-line) !important;
  border-radius: var(--new-radius-sm) !important;
  color: var(--new-text) !important;
  box-shadow: none !important;
}
html body.v6-mode.page-pvp #main .pvp-solo-wintoggle-btn.is-active {
  border-color: var(--new-green) !important;
  color: var(--new-green) !important;
}
html body.v6-mode.page-pvp #main :where(.pvp-solo-win-row, .pvp-solo-win-empty) {
  background: var(--new-card) !important;
  background-image: none !important;
  border-color: var(--new-line) !important;
  color: var(--new-text) !important;
}
@media (max-width: 640px) {
  html body.v6-mode.page-pvp #main .pvp-multi-wins .pvp-solo-winboard-head,
  html body.v6-mode.page-pvp #main .pvp-solo-wins .pvp-solo-winboard-head {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  html body.v6-mode.page-pvp #main .pvp-solo-winboard-head h3 {
    font-size: clamp(1rem, 5.4vw, 1.35rem) !important;
    line-height: 1.05 !important;
  }
  html body.v6-mode.page-pvp #main .pvp-solo-wintoggle {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.5rem !important;
  }
  html body.v6-mode.page-pvp #main .pvp-solo-wintoggle-btn {
    width: 100% !important;
    min-width: 0 !important;
  }
}

/* ============================================================
   Structural new-theme pass: category catalogs, Messages, and Play.
   These selectors only activate when the admin-only preview emits the
   new shell classes from the PHP templates.
   ============================================================ */
html body.v6-mode #main :where(.category-experience, .messages-experience, .play-experience) {
  display: grid !important;
  gap: 1rem !important;
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
html body.v6-mode #main :where(.category-hero, .messages-hero, .play-hero) {
  position: relative !important;
  overflow: hidden !important;
  display: grid !important;
  grid-template-columns: auto auto minmax(0, 1fr) minmax(220px, 0.42fr) !important;
  align-items: stretch !important;
  gap: clamp(0.75rem, 2vw, 1rem) !important;
  padding: clamp(1rem, 2.5vw, 1.5rem) !important;
  background:
    linear-gradient(135deg, rgba(var(--ng-rgb),0.08), transparent 32%),
    linear-gradient(315deg, rgba(0,240,255,0.08), transparent 36%),
    var(--new-card) !important;
  border: 2px solid var(--new-line) !important;
  border-radius: var(--new-radius) !important;
  box-shadow: var(--new-shadow) !important;
  color: var(--new-text) !important;
}
html body.v6-mode #main :where(.category-hero, .messages-hero, .play-hero)::after {
  content: "";
  position: absolute;
  inset: auto 1rem 1rem auto;
  width: min(210px, 28vw);
  height: min(210px, 28vw);
  border: 2px solid rgba(var(--ng-rgb),0.18);
  border-radius: 999px;
  opacity: 0.65;
  pointer-events: none;
}
html body.v6-mode #main :where(.category-hero-back, .category-hero-icon, .messages-hero-icon, .play-hero-icon) {
  position: relative !important;
  z-index: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 54px !important;
  height: 54px !important;
  min-width: 54px !important;
  min-height: 54px !important;
  padding: 0 !important;
  background: #000 !important;
  background-image: none !important;
  border: 2px solid var(--new-line) !important;
  border-radius: 16px !important;
  color: var(--new-green) !important;
  box-shadow: none !important;
  text-decoration: none !important;
}
html body.v6-mode #main .category-hero-back:hover,
html body.v6-mode #main .category-hero-back:focus-visible {
  border-color: var(--new-green) !important;
  color: var(--new-bg) !important;
  background: var(--new-green) !important;
}
html body.v6-mode #main :where(.category-hero-copy, .messages-hero-copy, .play-hero-copy) {
  position: relative !important;
  z-index: 1 !important;
  min-width: 0 !important;
  display: grid !important;
  align-content: center !important;
  gap: 0.35rem !important;
}
html body.v6-mode #main :where(.category-hero-kicker, .messages-hero-kicker, .play-hero-kicker) {
  display: inline-flex !important;
  width: fit-content !important;
  align-items: center !important;
  gap: 0.4rem !important;
  color: var(--new-green) !important;
  font-size: 0.74rem !important;
  font-weight: 1000 !important;
  letter-spacing: 0.13em !important;
  text-transform: uppercase !important;
}
html body.v6-mode #main :where(.category-hero h1, .messages-hero h1, .play-hero h1) {
  margin: 0 !important;
  color: var(--new-text) !important;
  font-family: Inter, system-ui, sans-serif !important;
  font-size: clamp(2.15rem, 6vw, 5rem) !important;
  line-height: 0.9 !important;
  letter-spacing: -0.08em !important;
  text-transform: none !important;
}
html body.v6-mode #main .play-hero h1 {
  max-width: 11ch !important;
}
html body.v6-mode #main :where(.category-hero p, .messages-hero p, .play-hero p) {
  margin: 0 !important;
  max-width: 68ch !important;
  color: var(--new-muted) !important;
  font-size: 0.98rem !important;
  line-height: 1.45 !important;
}
html body.v6-mode #main .category-hero-summary {
  color: var(--new-text) !important;
}
html body.v6-mode #main :where(.category-hero-stats, .messages-hero-stats, .play-hero-stats) {
  position: relative !important;
  z-index: 1 !important;
  display: grid !important;
  gap: 0.55rem !important;
  align-content: center !important;
}
html body.v6-mode #main :where(.category-hero-stats span, .messages-hero-stats span, .play-hero-stats span) {
  display: grid !important;
  gap: 0.1rem !important;
  min-width: 0 !important;
  padding: 0.75rem 0.85rem !important;
  background: #000 !important;
  border: 2px solid var(--new-line) !important;
  border-radius: var(--new-radius-sm) !important;
}
html body.v6-mode #main :where(.category-hero-stats strong, .messages-hero-stats strong, .play-hero-stats strong) {
  color: #fff !important;
  font-size: clamp(1.25rem, 3vw, 1.8rem) !important;
  line-height: 1 !important;
  font-weight: 1000 !important;
}
html body.v6-mode #main :where(.category-hero-stats em, .messages-hero-stats em, .play-hero-stats em) {
  color: #cbd5e1 !important;
  font-size: 0.72rem !important;
  font-style: normal !important;
  font-weight: 900 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}
html.light-mode body.v6-mode.v6-skin-askmi #main :where(.category-hero-stats, .messages-hero-stats, .play-hero-stats) span strong {
  color: #fff !important;
}

html body.v6-mode #main .category-filter-panel {
  display: grid !important;
  gap: 0.85rem !important;
  padding: 1rem !important;
  margin: 0 !important;
  background: var(--new-card) !important;
  background-image: none !important;
  border: 2px solid var(--new-line) !important;
  border-radius: var(--new-radius) !important;
  box-shadow: var(--new-shadow) !important;
}
html body.v6-mode #main .category-filter-panel .subpage-control-head {
  display: grid !important;
  grid-template-columns: auto minmax(220px, 1fr) auto auto !important;
  align-items: center !important;
  gap: 0.65rem !important;
  min-width: 0 !important;
}
html body.v6-mode #main .category-filter-panel .subpage-control-kicker {
  color: var(--new-green) !important;
  font-weight: 1000 !important;
  letter-spacing: 0.11em !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
}
html body.v6-mode #main .category-filter-panel .subpage-search-head {
  display: flex !important;
  min-width: 0 !important;
  gap: 0.55rem !important;
  margin: 0 !important;
}
html body.v6-mode #main .category-filter-panel :where(.subpage-search-trigger, .subpage-clear-filters, .subpage-joke-action) {
  flex: 0 0 auto !important;
}
html body.v6-mode #main .category-filter-panel :where(.discover-audience, .subpage-facetbar, .subpage-pillrow-filter, .subpage-filters-mobile, .subpage-toolbar, .places-defaults-row) {
  margin: 0 !important;
  background: var(--new-bg) !important;
  background-image: none !important;
  border: 2px solid var(--new-line) !important;
  border-radius: var(--new-radius-sm) !important;
  box-shadow: none !important;
  color: var(--new-text) !important;
  padding: 0.65rem !important;
}
html body.v6-mode #main .category-filter-panel :where(.discover-audience-pill, .discover-audience-toggle, .subpage-pill, .subpage-seg, .subpage-select-chip, .subpage-streaming-service-select, .places-defaults-action) {
  min-height: 40px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.45rem !important;
  background: #000 !important;
  background-image: none !important;
  border: 2px solid var(--new-line) !important;
  border-radius: 999px !important;
  color: var(--new-text) !important;
  box-shadow: none !important;
  font-weight: 900 !important;
  text-decoration: none !important;
}
html body.v6-mode #main .category-filter-panel :where(.discover-audience-pill.active, .discover-audience-toggle.active, .subpage-pill.active, .subpage-seg.is-active, .subpage-select-chip.is-selected, .places-defaults-action-primary) {
  background: var(--new-green) !important;
  border-color: var(--new-green) !important;
  color: var(--new-bg) !important;
}
html body.v6-mode #main .category-filter-panel :where(.subpage-deck-label, .subpage-pillrow-label, .discover-audience-lead, .subpage-locfilter-label) {
  color: var(--new-muted) !important;
  font-weight: 1000 !important;
  letter-spacing: 0.1em !important;
}
html body.v6-mode #main .category-result-strip {
  display: flex !important;
  align-items: center !important;
  gap: 0.55rem !important;
  flex-wrap: wrap !important;
  margin: 0 !important;
  padding: 0.75rem 0.85rem !important;
  background: #000 !important;
  border: 2px solid var(--new-line) !important;
  border-radius: var(--new-radius-sm) !important;
  color: var(--new-muted) !important;
}
html body.v6-mode #main .category-result-strip strong {
  color: var(--new-green) !important;
}

html body.v6-mode #main .category-card-stream {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(292px, 1fr)) !important;
  gap: 0.85rem !important;
  margin: 0 !important;
  align-items: stretch !important;
  grid-auto-rows: 1fr !important;
}
@media (min-width: 1024px) {
  html body.v6-mode.page-local #main .category-card-stream {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}
@media (min-width: 701px) and (max-width: 1023px) {
  html body.v6-mode.page-local #main .category-card-stream {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
html body.v6-mode #main .category-card-stream > .discover-card-item {
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  min-width: 0 !important;
  min-height: 100% !important;
  overflow: hidden !important;
  padding: 0 !important;
  background: var(--new-card) !important;
  background-image: none !important;
  border: 2px solid var(--new-line) !important;
  border-radius: var(--new-radius) !important;
  box-shadow: var(--new-shadow) !important;
  color: var(--new-text) !important;
}
html body.v6-mode #main .category-card-stream > .discover-card-item.is-expanded {
  grid-row: span 2 !important;
  border-color: var(--new-green) !important;
}
html body.v6-mode #main .category-card-stream > .discover-card-item:hover {
  border-color: var(--new-green) !important;
  transform: none !important;
}
html body.v6-mode #main .category-card-stream .discover-card-media {
  position: relative !important;
  min-height: 0 !important;
  aspect-ratio: 16 / 11 !important;
  background: #000 !important;
  border: 0 !important;
  border-bottom: 2px solid var(--new-line) !important;
  border-radius: 0 !important;
}
html body.v6-mode #main .category-card-stream .discover-card-media :where(img, iframe, .meme-zoom-trigger, .discover-card-shop-link) {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 0 !important;
}
html body.v6-mode #main .category-card-stream .discover-card-media-blank {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
html body.v6-mode #main .category-card-stream .discover-card-emoji {
  color: var(--new-green) !important;
  font-size: clamp(2.2rem, 8vw, 4rem) !important;
}
html body.v6-mode #main .category-card-stream :where(.discover-card-tag, .discover-card-pct, .discover-card-new-badge, .video-duration-chip, .meme-zoom-badge, .discover-card-shop-badge) {
  background: rgba(0,0,0,0.78) !important;
  background-image: none !important;
  border: 2px solid var(--new-line) !important;
  border-radius: 999px !important;
  color: var(--new-text) !important;
  box-shadow: none !important;
  font-weight: 1000 !important;
}
html body.v6-mode #main .category-card-stream .discover-card-pct {
  color: var(--new-green) !important;
}
html body.v6-mode #main .category-card-stream .discover-card-pct-empty {
  color: var(--new-text) !important;
  border-color: rgba(255,255,255,0.22) !important;
  font-size: 0.72rem !important;
  line-height: 1 !important;
}
html body.v6-mode #main .category-card-stream .discover-card-body {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.55rem !important;
  min-width: 0 !important;
  padding: 0.78rem !important;
}
html body.v6-mode #main .category-card-stream .discover-card-title {
  margin: 0 !important;
  color: var(--new-text) !important;
  font-size: clamp(1.05rem, 2.6vw, 1.35rem) !important;
  line-height: 1.05 !important;
  letter-spacing: -0.035em !important;
}
html body.v6-mode #main .category-card-stream :where(.discover-card-meta, .discover-card-desc, .discover-card-ugc-pill) {
  color: var(--new-muted) !important;
  font-size: 0.86rem !important;
  line-height: 1.42 !important;
}
html body.v6-mode #main .category-card-stream .discover-card-foot {
  display: grid !important;
  gap: 0.7rem !important;
  margin-top: auto !important;
  padding-top: 0.25rem !important;
  border-top: 1px solid var(--new-line) !important;
}
html body.v6-mode #main .category-card-stream .subpage-video-fullscreen {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #000 !important;
  cursor: zoom-in !important;
  box-shadow: none !important;
}
html body.v6-mode #main .category-card-stream .subpage-video-fullscreen iframe {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none !important;
}
html body.v6-mode #main .category-card-stream .subpage-video-fullscreen:fullscreen iframe {
  pointer-events: auto !important;
}
html body.v6-mode #main .category-card-stream .subpage-video-fullscreen-badge {
  position: absolute !important;
  right: 0.7rem !important;
  bottom: 0.7rem !important;
  z-index: 5 !important;
  width: 40px !important;
  height: 40px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255,255,255,0.28) !important;
  background: rgba(0,0,0,0.68) !important;
  color: #fff !important;
}
html body.v6-mode #main .category-filter-panel :where(.subpage-joke-action, .subpage-joke-submit-btn, .subpage-joke-submit-link.is-primary) {
  background: var(--new-green) !important;
  background-image: none !important;
  border: 2px solid var(--new-green) !important;
  color: var(--new-bg) !important;
  box-shadow: none !important;
}
html body.v6-mode #main .category-filter-panel .subpage-joke-submit {
  background: var(--new-card-2) !important;
  background-image: none !important;
  border: 2px solid var(--new-line) !important;
  border-radius: var(--new-radius) !important;
  box-shadow: none !important;
}
html body.v6-mode #main .category-filter-panel .subpage-joke-submit-icon {
  background: #000 !important;
  border: 2px solid var(--new-line) !important;
  color: var(--new-green) !important;
}
html body.v6-mode #main .category-card-stream .discover-card-prompt {
  width: 100% !important;
  min-height: 0 !important;
  justify-content: flex-start !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  color: var(--new-muted) !important;
  font-weight: 900 !important;
}
html body.v6-mode #main .category-card-stream .discover-card-actions {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(38px, 1fr)) !important;
  gap: 0.45rem !important;
}
html body.v6-mode #main .category-card-stream :where(.discover-rate, .discover-skip, .discover-card-save, .discover-card-detail-icon) {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 40px !important;
  height: 40px !important;
  padding: 0 !important;
  background: #000 !important;
  background-image: none !important;
  border: 2px solid var(--new-line) !important;
  border-radius: var(--new-radius-sm) !important;
  color: var(--new-text) !important;
  box-shadow: none !important;
}
html body.v6-mode #main .category-card-stream :where(.discover-rate.active, .discover-card-save.saved) {
  border-color: var(--new-green) !important;
  color: var(--new-green) !important;
}

html body.v6-mode #main .messages-experience .messages-layout {
  margin-top: 0 !important;
}
html body.v6-mode #main .messages-rail::before {
  content: "Conversations";
  display: block;
  padding: 0.9rem 0.95rem 0;
  color: var(--new-green);
  font-size: 0.74rem;
  font-weight: 1000;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
html body.v6-mode #main .messages-thread-panel {
  min-height: min(760px, calc(100dvh - var(--v6-nav-height, 96px) - 220px)) !important;
}
html body.v6-mode #main .messages-thread-panel .msg-composer {
  margin: 0 !important;
  padding: 0.85rem !important;
  background: var(--new-card-2) !important;
  border-top: 2px solid var(--new-line) !important;
}
html body.v6-mode #main .messages-thread-panel .msg-composer-field,
html body.v6-mode #main .messages-thread-panel .msg-composer-inputrow {
  min-width: 0 !important;
  background: #000 !important;
  border-color: var(--new-line) !important;
}

html body.v6-mode #main .play-experience .pvp-mode-switch {
  margin: 0 !important;
}
html body.v6-mode #main .play-experience :where(.pvp-mode-panel, #pvp-multi-panel) {
  min-width: 0 !important;
}
html body.v6-mode #main .play-experience .pvp-mode-panel:not([hidden]),
html body.v6-mode #main .play-experience #pvp-multi-panel:not([hidden]) {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 1rem !important;
}
/* The active panel was display:grid with an implicit auto (max-content)
   column, so children (.pvp-solo-grid, tournament boards, multi lobby) grew
   to max-content (~673px) and the right half clipped off-screen on mobile.
   Constraining the panel to minmax(0,1fr) + zeroing descendant min-width lets
   the inner auto-fill grids collapse to the real panel width (1 col @390px). */
html body.v6-mode #main .play-experience .pvp-mode-panel:not([hidden]) *,
html body.v6-mode #main .play-experience #pvp-multi-panel:not([hidden]) * {
  min-width: 0 !important;
}
html body.v6-mode #main .play-experience :where(.pvp-solo-grid, .pvp-gametiles, .pvp-lobby-grid, .pvp-pack-grid) {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
  gap: 1rem !important;
}
html body.v6-mode #main .play-experience .pvp-solo-card {
  display: grid !important;
  grid-template-rows: minmax(0, 1fr) auto !important;
  min-width: 0 !important;
  background: var(--new-card) !important;
  background-image: none !important;
  border: 2px solid var(--new-line) !important;
  border-radius: var(--new-radius) !important;
  box-shadow: var(--new-shadow) !important;
  overflow: hidden !important;
}
html body.v6-mode #main .play-experience .pvp-solo-card:hover {
  border-color: var(--new-green) !important;
  transform: none !important;
}
html body.v6-mode #main .play-experience :where(.pvp-solo-main, .pvp-gametile, .pvp-lobby-card, .pvp-pack-card) {
  min-width: 0 !important;
  color: var(--new-text) !important;
}
html body.v6-mode #main .play-experience :where(.pvp-solo-card h3, .pvp-gametile-title, .pvp-lobby-card h3, .pvp-pack-card h3) {
  color: var(--new-text) !important;
  letter-spacing: -0.035em !important;
}
html body.v6-mode #main .play-experience :where(.pvp-solo-card p, .pvp-gametile-desc, .pvp-lobby-card p, .pvp-pack-card p, .pvp-coll-sub) {
  color: var(--new-muted) !important;
}

@media (max-width: 900px) {
  html body.v6-mode #main :where(.category-hero, .messages-hero, .play-hero) {
    grid-template-columns: auto minmax(0, 1fr) !important;
  }
  html body.v6-mode #main .category-hero-back {
    grid-column: 1 !important;
  }
  html body.v6-mode #main :where(.category-hero-icon, .messages-hero-icon, .play-hero-icon) {
    grid-column: 1 !important;
  }
  html body.v6-mode #main :where(.category-hero-copy, .messages-hero-copy, .play-hero-copy) {
    grid-column: 2 !important;
  }
  html body.v6-mode #main :where(.category-hero-stats, .messages-hero-stats, .play-hero-stats) {
    grid-column: 1 / -1 !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  html body.v6-mode #main .category-filter-panel .subpage-control-head {
    grid-template-columns: 1fr auto !important;
  }
  html body.v6-mode #main .category-filter-panel .subpage-search-head {
    grid-column: 1 / -1 !important;
  }
}
@media (max-width: 640px) {
  html body.v6-mode #main :where(.category-hero, .messages-hero, .play-hero) {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }
  html body.v6-mode #main :where(.category-hero-back, .category-hero-icon, .messages-hero-icon, .play-hero-icon, .category-hero-copy, .messages-hero-copy, .play-hero-copy, .category-hero-stats, .messages-hero-stats, .play-hero-stats) {
    grid-column: 1 !important;
  }
  html body.v6-mode #main :where(.category-hero h1, .messages-hero h1, .play-hero h1) {
    font-size: clamp(2rem, 13vw, 3.3rem) !important;
  }
  html body.v6-mode #main :where(.category-hero-stats, .messages-hero-stats, .play-hero-stats) {
    grid-template-columns: 1fr !important;
  }
  html body.v6-mode #main .category-filter-panel {
    padding: 0.75rem !important;
  }
  html body.v6-mode #main .category-filter-panel .subpage-control-head {
    grid-template-columns: 1fr !important;
  }
  html body.v6-mode #main .category-filter-panel :where(.subpage-search-trigger, .subpage-clear-filters, .subpage-joke-action) {
    width: 100% !important;
  }
  html body.v6-mode #main .category-card-stream {
    grid-template-columns: 1fr !important;
  }
  html body.v6-mode #main .category-card-stream .discover-card-actions {
    grid-template-columns: repeat(5, minmax(36px, 1fr)) !important;
  }
  html body.v6-mode #main .messages-thread-panel {
    min-height: min(680px, calc(100dvh - var(--v6-nav-height, 96px) - 120px)) !important;
  }
}

/* ============================================================
   V6 cohesion pass (admin preview only)
   The legacy stylesheet stamps thin multi-hue decorative accents
   (3px ::before top-bars, ::after underlines) on nearly every card
   and section wrapper, in two clashing palettes: a purple
   --brand-pop-line set and a hard-coded cyan/violet/amber tri-color
   set. Against the flat black + neon-green direction they read as
   "V5 flourishes layered on top." This pass folds every one of them
   into the single neon-green theme signature so the redesigned
   surfaces are internally consistent. Geometry is untouched; only
   colour changes.
   ============================================================ */
html body.v6-mode {
  --brand-pop-line: linear-gradient(90deg, rgba(var(--ng-rgb),0), rgba(var(--ng-rgb),0.85) 50%, rgba(var(--ng-rgb),0));
  --brand-pop-glow: 0 18px 44px -32px rgba(0,0,0,0.55), 0 1px 0 rgba(255,255,255,0.04) inset;
}

/* Fold the hard-coded tri-color top-bars into the theme accent. */
html body.v6-mode #main :where(
  .acct-card, .discover-section, .discover-bar, .discover-greet,
  .profile-card, .acct-rp-card, .profile-compare, .profile-hero,
  .cd-hero, .cd-row, .pulse-widget, .streak-widget, .hub-cta,
  .connect-strip-wrap, .subpage-control-deck,
  .pvp-solo-card, .pvp-lobby-card, .tour-race-core,
  .lb-winners-card, .lb-fine-print
)::before {
  background: linear-gradient(90deg, rgba(var(--ng-rgb),0), var(--new-green) 50%, rgba(var(--ng-rgb),0)) !important;
  opacity: 0.5 !important;
}

/* Active nav/quicklink underline → theme accent (matches the green active pill). */
html body.v6-mode #main .acct-quicklink.is-active::after {
  background: linear-gradient(90deg, rgba(var(--ng-rgb),0), var(--new-green) 50%, rgba(var(--ng-rgb),0)) !important;
  opacity: 0.7 !important;
}

/* Section-head underline accent → theme accent. */
html body.v6-mode #main .discover-section-head::after {
  background: linear-gradient(90deg, var(--new-green), rgba(var(--ng-rgb),0)) !important;
  opacity: 0.55 !important;
}

/* Active audience/filter pills use a green→violet gradient in legacy;
   align them with the solid neon-green active state used elsewhere. */
html body.v6-mode #main :where(.pvp-audience-pill, .pvp-pick-audience-pill).is-active {
  background: var(--new-green) !important;
  background-image: none !important;
  border-color: var(--new-green) !important;
  color: #0a0a0a !important;
}

/* The Messages rail label is a text heading, not a decorative bar —
   strip the gradient the legacy ::before rule bleeds onto it. */
html body.v6-mode #main .messages-rail::before {
  background: none !important;
  background-image: none !important;
}

/* ============================================================
   V6 feedback pass — shared chrome, popouts, footer, scroll affordance
   ============================================================ */
html body.v6-mode {
  --purple: var(--new-green, var(--neon-green));
  --purple-light: var(--new-green, var(--neon-green));
  --purple-border: rgba(var(--ng-rgb),0.34);
  --purple-glow: rgba(var(--ng-rgb),0.10);
  --bg-primary: var(--new-bg, var(--bg));
  --bg-secondary: var(--new-card, var(--card-bg));
  --bg-raised: var(--new-card-2, #171717);
  --surface: var(--new-card, var(--card-bg));
  --surface-hover: #000;
  --border: var(--new-line, var(--border-color));
  --text-primary: var(--new-text, var(--text));
  --text-secondary: var(--new-muted, var(--text-dim));
  --text-muted: var(--new-muted, var(--text-dim));
}

html body.v6-mode .nav-bar .brand {
  gap: 0.18em !important;
  text-transform: none !important;
  letter-spacing: -0.07em !important;
}
html body.v6-mode .nav-bar .brand strong {
  color: var(--new-text, var(--text)) !important;
  font: inherit !important;
  font-weight: 1000 !important;
  letter-spacing: inherit !important;
}
html body.v6-mode .nav-bar .brand span,
html body.v6-mode .weird-footer-brand-copy strong span {
  align-self: baseline !important;
  color: var(--new-green, var(--neon-green)) !important;
  font-size: 0.48em !important;
  letter-spacing: -0.03em !important;
  text-transform: lowercase !important;
}
html body.v6-mode .weird-footer-brand-copy strong {
  display: inline-flex !important;
  align-items: baseline !important;
  gap: 0.18em !important;
  color: var(--new-text, var(--text)) !important;
  font-weight: 1000 !important;
}

html body.v6-mode .nav-bar .v6-pop {
  top: calc(100% + 8px) !important;
  z-index: 10040 !important;
  background: var(--new-card, var(--card-bg)) !important;
  border: 2px solid var(--new-line, var(--border-color)) !important;
  border-radius: var(--new-radius, 18px) !important;
  box-shadow: var(--new-shadow, var(--sh, 6px 6px 0 rgba(0,0,0,0.85))) !important;
}
html body.v6-mode .nav-bar .v6-pop-explore {
  left: 1.5rem !important;
  width: min(620px, calc(100vw - 3rem)) !important;
}
html body.v6-mode .nav-bar .v6-pop-grid {
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)) !important;
  gap: 0.6rem !important;
}
html body.v6-mode .nav-bar .v6-pop-cat {
  min-height: 86px !important;
  justify-content: center !important;
  background: #000 !important;
  border-color: var(--new-line, var(--border-color)) !important;
  border-radius: var(--new-radius-sm, 14px) !important;
  font-weight: 1000 !important;
}
html body.v6-mode .nav-bar .v6-pop-cat:hover,
html body.v6-mode .nav-bar .v6-pop-cat:focus-visible {
  border-color: var(--cat-color, var(--new-green, var(--neon-green))) !important;
  color: var(--new-text, var(--text)) !important;
  outline: none !important;
}
html body.v6-mode .nav-bar .v6-pop-foot {
  display: none !important;
}

html body.v6-mode .weird-search-popout,
html body.v6-mode .weird-notif-popout,
html body.v6-mode .weird-avatar-popout {
  top: var(--v6-nav-pop-top, 86px) !important;
  right: max(12px, env(safe-area-inset-right, 0px)) !important;
  left: auto !important;
  background: var(--new-card, var(--card-bg)) !important;
  background-image: none !important;
  border: 2px solid var(--new-line, var(--border-color)) !important;
  border-radius: var(--new-radius, 18px) !important;
  box-shadow: var(--new-shadow, var(--sh, 6px 6px 0 rgba(0,0,0,0.85))), 0 22px 60px -36px rgba(0,0,0,0.95) !important;
  color: var(--new-text, var(--text)) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
html body.v6-mode .weird-search-popout {
  width: min(620px, calc(100vw - 24px)) !important;
  padding: 0.9rem !important;
}
html body.v6-mode .weird-notif-popout {
  width: min(420px, calc(100vw - 24px)) !important;
}
html body.v6-mode .weird-avatar-popout {
  width: min(310px, calc(100vw - 24px)) !important;
}
html body.v6-mode .weird-search-form,
html body.v6-mode .weird-notif-filterbar,
html body.v6-mode .weird-notif-head,
html body.v6-mode .weird-notif-foot,
html body.v6-mode .weird-avatar-menu-head,
html body.v6-mode .weird-avatar-menu-item,
html body.v6-mode .weird-avatar-coin {
  background: #000 !important;
  background-image: none !important;
  border-color: var(--new-line, var(--border-color)) !important;
  color: var(--new-text, var(--text)) !important;
}
html body.v6-mode .weird-search-form,
html body.v6-mode .weird-avatar-menu-head,
html body.v6-mode .weird-avatar-menu-item,
html body.v6-mode .weird-avatar-coin {
  border: 2px solid var(--new-line, var(--border-color)) !important;
  border-radius: var(--new-radius-sm, 14px) !important;
}
html body.v6-mode .weird-search-input,
html body.v6-mode .weird-search-result-name,
html body.v6-mode .weird-notif-title,
html body.v6-mode .weird-notif-itm-title,
html body.v6-mode .weird-avatar-menu-head strong {
  color: var(--new-text, var(--text)) !important;
}
html body.v6-mode .weird-search-result-sub,
html body.v6-mode .weird-search-hint,
html body.v6-mode .weird-notif-itm-sub,
html body.v6-mode .weird-notif-itm-time,
html body.v6-mode .weird-avatar-menu-head small {
  color: var(--new-muted, var(--text-dim)) !important;
}
html body.v6-mode .weird-search-result,
html body.v6-mode .weird-notif-item {
  border: 2px solid transparent !important;
  border-radius: var(--new-radius-sm, 14px) !important;
}
html body.v6-mode .weird-search-result:hover,
html body.v6-mode .weird-search-result.is-active,
html body.v6-mode .weird-notif-item:hover,
html body.v6-mode .weird-avatar-menu-head:hover,
html body.v6-mode .weird-avatar-menu-item:hover,
html body.v6-mode .weird-avatar-menu-head:focus-visible,
html body.v6-mode .weird-avatar-menu-item:focus-visible {
  background: #000 !important;
  border-color: var(--new-green, var(--neon-green)) !important;
  color: var(--new-green, var(--neon-green)) !important;
  outline: none !important;
}
html body.v6-mode .weird-search-result-thumb,
html body.v6-mode .weird-notif-icon,
html body.v6-mode .weird-notif-coin-ic {
  background: var(--new-bg, var(--bg)) !important;
  border: 2px solid var(--new-line, var(--border-color)) !important;
  color: var(--new-green, var(--neon-green)) !important;
}
html body.v6-mode .weird-search-result-cat,
html body.v6-mode .weird-search-all,
html body.v6-mode .weird-notif-filter.btn-glow.is-active,
html body.v6-mode .weird-notif-mark-all:hover {
  background: var(--new-green, var(--neon-green)) !important;
  background-image: none !important;
  border-color: var(--new-green, var(--neon-green)) !important;
  color: var(--new-bg, #050505) !important;
  box-shadow: none !important;
}
html body.v6-mode .weird-search-result-cat i,
html body.v6-mode .weird-search-all i,
html body.v6-mode .weird-notif-filter.btn-glow.is-active i {
  color: var(--new-bg, #050505) !important;
}
html body.v6-mode .weird-notif-filter.btn-glow,
html body.v6-mode .weird-notif-mark-all,
html body.v6-mode .weird-notif-settings,
html body.v6-mode .weird-search-clear {
  background: #000 !important;
  border: 2px solid var(--new-line, var(--border-color)) !important;
  color: var(--new-text, var(--text)) !important;
  box-shadow: none !important;
}
html body.v6-mode .weird-notif-item.is-unread,
html body.v6-mode .weird-notif-item.is-unread:hover {
  background: rgba(var(--ng-rgb),0.07) !important;
}
html body.v6-mode .weird-notif-item.is-unread::before {
  background: var(--new-green, var(--neon-green)) !important;
  box-shadow: 0 0 12px rgba(var(--ng-rgb),0.68) !important;
}

html body.v6-mode #main .search-page {
  max-width: min(1120px, 100%) !important;
}
html body.v6-mode #main .search-page :where(.search-hero, .search-summary, .search-empty, .search-card) {
  background: var(--new-card, var(--card-bg)) !important;
  background-image: none !important;
  border: 2px solid var(--new-line, var(--border-color)) !important;
  border-radius: var(--new-radius, 18px) !important;
  box-shadow: none !important;
}
html body.v6-mode #main .search-page :where(.search-form, .search-chip, .search-empty-suggest a, .search-group-count) {
  background: #000 !important;
  border: 2px solid var(--new-line, var(--border-color)) !important;
  color: var(--new-text, var(--text)) !important;
}
html body.v6-mode #main .search-page :where(.search-hero h1, .search-card-name, .search-empty h2, .search-group-head h2) {
  color: var(--new-text, var(--text)) !important;
  font-weight: 950 !important;
}
html body.v6-mode #main .search-page :where(.search-sub, .search-card-sub, .search-empty p, .search-summary-total, .search-group-count) {
  color: var(--new-muted, var(--text-dim)) !important;
}
html body.v6-mode #main .search-page :where(.search-hero h1 i, .search-q, .search-group-head i, .search-card-cta) {
  color: var(--new-green, var(--neon-green)) !important;
}
html body.v6-mode #main .search-page :where(.search-go, .search-chip-count) {
  background: var(--new-green, var(--neon-green)) !important;
  background-image: none !important;
  color: var(--new-bg, #050505) !important;
  font-weight: 950 !important;
}
html body.v6-mode #main .search-page .search-card:hover,
html body.v6-mode #main .search-page .search-chip:hover,
html body.v6-mode #main .search-page .search-empty-suggest a:hover {
  border-color: var(--new-green, var(--neon-green)) !important;
  color: var(--new-green, var(--neon-green)) !important;
  transform: translateY(-2px);
}
html body.v6-mode #main .search-page .search-card-tag {
  top: 8px !important;
  bottom: auto !important;
  background: #000 !important;
  border: 2px solid var(--new-line, var(--border-color)) !important;
  color: var(--new-text, var(--text)) !important;
  font-weight: 950 !important;
}

html body.v6-mode #main .msg-shell.messages-layout {
  gap: 12px !important;
  margin-top: 0 !important;
}
html body.v6-mode #main :where(.msg-sidebar, .msg-thread, .msg-new-group-dialog, .cf-menu) {
  background: var(--new-card, var(--card-bg)) !important;
  background-image: none !important;
  border: 2px solid var(--new-line, var(--border-color)) !important;
  border-radius: var(--new-radius, 18px) !important;
  box-shadow: none !important;
  color: var(--new-text, var(--text)) !important;
}
html body.v6-mode #main :where(.msg-side-tabs, .msg-thread-head, .msg-composer, .msg-group-members-panel, .msg-event-card, .msg-thread-kebab-menu) {
  background: #000 !important;
  background-image: none !important;
  border-color: var(--new-line, var(--border-color)) !important;
}
html body.v6-mode #main :where(.msg-side-tabs button, .msg-side-card, .msg-group-tool-btn, .msg-thread-kebab-btn, .msg-thread-kebab-toggle, .msg-thread-kebab-menu a, .msg-thread-kebab-menu button, .msg-new-group-peer, .cf-menu-item) {
  background: #000 !important;
  background-image: none !important;
  border: 2px solid var(--new-line, var(--border-color)) !important;
  color: var(--new-text, var(--text)) !important;
  box-shadow: none !important;
}
html body.v6-mode #main :where(.msg-new-dm-btn, .msg-new-group-btn, .msg-side-tabs button.is-active, .msg-composer button[type="submit"], .msg-side-empty-btn, .msg-thread-kebab-toggle input[type=checkbox]:checked, .msg-new-group-peer input[type=checkbox]:checked) {
  background: var(--new-green, var(--neon-green)) !important;
  background-image: none !important;
  border-color: var(--new-green, var(--neon-green)) !important;
  color: var(--new-bg, #050505) !important;
  box-shadow: none !important;
}
html body.v6-mode #main :where(.msg-new-dm-btn i, .msg-new-group-btn i, .msg-side-tabs button.is-active i, .msg-composer button[type="submit"] i, .msg-side-empty-btn i) {
  color: var(--new-bg, #050505) !important;
}
html body.v6-mode #main .msg-side-tabs button:not(.is-active) .msg-side-tab-count,
html body.v6-mode #main .msg-side-tab-count,
html body.v6-mode #main .msg-new-badge,
html body.v6-mode #main .msg-new-tag {
  background: var(--new-green, var(--neon-green)) !important;
  background-image: none !important;
  color: var(--new-bg, #050505) !important;
  box-shadow: none !important;
}
html body.v6-mode #main .msg-side-card:hover,
html body.v6-mode #main .msg-side-card.is-active,
html body.v6-mode #main .msg-thread-kebab-menu a:hover,
html body.v6-mode #main .msg-thread-kebab-menu button:hover,
html body.v6-mode #main .msg-thread-kebab-toggle:hover,
html body.v6-mode #main .cf-menu-item:hover,
html body.v6-mode #main .cf-menu-item.is-active {
  border-color: var(--new-green, var(--neon-green)) !important;
  color: var(--new-green, var(--neon-green)) !important;
  transform: none !important;
}
html body.v6-mode #main .msg-side-card.is-active::before {
  background: var(--new-green, var(--neon-green)) !important;
  box-shadow: none !important;
}
html body.v6-mode #main .msg-side-card.is-active::after {
  background: var(--new-green, var(--neon-green)) !important;
  box-shadow: 0 0 0 4px rgba(var(--ng-rgb),0.16) !important;
}
html body.v6-mode #main :where(.msg-side-card-name, .msg-thread-head-name, .msg-thread-head-name .msg-thread-head-name-text, .msg-thread-head-name a.name-link, .msg-bubble-name, .msg-row-group .msg-bubble-from, .msg-event-title, .msg-group-members-head h4) {
  color: var(--new-text, var(--text)) !important;
  -webkit-text-fill-color: currentColor !important;
}
html body.v6-mode #main :where(.msg-side-card-meta, .msg-thread-head-sub, .msg-bubble-meta, .msg-event-body, .msg-event-meta, .msg-event-line-main small, .msg-group-members-count, .msg-reply-text, .msg-reply-compose-copy span) {
  color: var(--new-muted, var(--text-dim)) !important;
}
html body.v6-mode #main .msg-row-them .msg-bubble {
  background: #000 !important;
  border: 2px solid var(--new-line, var(--border-color)) !important;
  color: var(--new-text, var(--text)) !important;
}
html body.v6-mode #main .msg-row-me .msg-bubble {
  background: var(--new-green, var(--neon-green)) !important;
  background-image: none !important;
  color: var(--new-bg, #050505) !important;
  box-shadow: none !important;
}
html body.v6-mode #main .msg-row-me :where(.msg-bubble-name, .msg-bubble-meta, .msg-reply-author, .msg-reply-text, .msg-source-context, .msg-source-context a) {
  color: rgba(var(--bg-rgb),0.78) !important;
  -webkit-text-fill-color: currentColor !important;
}
html body.v6-mode #main .msg-row-me .msg-bubble-body {
  color: var(--new-bg, #050505) !important;
}
html body.v6-mode #main :where(.msg-react-open, .msg-reply-start) {
  opacity: 0.88 !important;
  min-width: 24px !important;
  height: 22px !important;
  pointer-events: auto !important;
}
html body.v6-mode #main :where(.msg-react-chip, .msg-react-open, .msg-reply-start, .msg-react-picker, .msg-react-choice) {
  background: #fff !important;
  color: #050505 !important;
  border-color: rgba(var(--bg-rgb),0.22) !important;
}
html body.v6-mode #main :where(.msg-react-choice:hover, .msg-react-choice.is-active, .msg-react-chip.is-active, .msg-react-chip:hover, .msg-react-open:hover, .msg-reply-start:hover) {
  background: var(--new-green, var(--neon-green)) !important;
  color: #050505 !important;
}
html body.v6-mode #main :where(.msg-source-context, .msg-reply-compose, .msg-reply-preview, .msg-event-line, .msg-group-member) {
  background: rgba(var(--ng-rgb),0.08) !important;
  border-color: rgba(var(--ng-rgb),0.28) !important;
}
html body.v6-mode #main .msg-event-icon,
html body.v6-mode #main .msg-event-line-icon,
html body.v6-mode #main .msg-reply-compose-icon,
html body.v6-mode #main .msg-taste-icon,
html body.v6-mode #main .cf-menu-item i,
html body.v6-mode #main .msg-thread-kebab-toggle span i {
  background: #000 !important;
  color: var(--new-green, var(--neon-green)) !important;
}
html body.v6-mode #main :where(.msg-composer textarea, .msg-emoji-trigger, .msg-emoji-picker, .msg-new-group-field input[type=text], .msg-new-group-search) {
  background: #000 !important;
  border: 2px solid var(--new-line, var(--border-color)) !important;
  color: var(--new-text, var(--text)) !important;
}
html body.v6-mode #main :where(.msg-composer textarea:focus, .msg-emoji-trigger:hover, .msg-new-group-field input[type=text]:focus, .msg-new-group-search:focus) {
  border-color: var(--new-green, var(--neon-green)) !important;
  box-shadow: none !important;
}
html body.v6-mode #main .msg-thread-kebab-menu {
  z-index: 10020 !important;
}
html body.v6-mode .cf-menu {
  background: var(--new-card, var(--card-bg)) !important;
  background-image: none !important;
  border: 2px solid var(--new-line, var(--border-color)) !important;
  border-radius: var(--new-radius, 18px) !important;
  box-shadow: var(--new-shadow, var(--sh, 6px 6px 0 rgba(0,0,0,0.85))) !important;
  color: var(--new-text, var(--text)) !important;
  z-index: 10080 !important;
}
html body.v6-mode .cf-menu :where(.cf-menu-item, .cf-menu-empty) {
  background: #000 !important;
  color: var(--new-text, var(--text)) !important;
}
html body.v6-mode .cf-menu .cf-menu-item {
  border: 2px solid transparent !important;
  border-radius: var(--new-radius-sm, 14px) !important;
  font-weight: 900 !important;
}
html body.v6-mode .cf-menu .cf-menu-item:hover,
html body.v6-mode .cf-menu .cf-menu-item.is-active {
  border-color: var(--new-green, var(--neon-green)) !important;
  color: var(--new-green, var(--neon-green)) !important;
}
html body.v6-mode .cf-menu .cf-menu-item i {
  color: var(--new-green, var(--neon-green)) !important;
}
html body.v6-mode .cf-menu .cf-menu-divider {
  background: var(--new-line, var(--border-color)) !important;
}
@media (max-width: 720px) {
  html body.v6-mode #main .msg-shell.messages-layout {
    grid-template-columns: 1fr !important;
  }
  html body.v6-mode #main .msg-sidebar,
  html body.v6-mode #main .msg-thread {
    max-height: none !important;
  }
  html body.v6-mode #main .msg-thread-body {
    max-height: calc(100vh - 270px) !important;
    min-height: 360px !important;
  }
  html body.v6-mode #main .msg-row {
    max-width: 96% !important;
  }
  html body.v6-mode #main .msg-reactions {
    top: -12px !important;
  }
}

html body.v6-mode #main :where(.profile-hero, .profile-card, .profile-compare, .profile-aura-section, .notify-card, .notif-empty) {
  background: var(--new-card, var(--card-bg)) !important;
  background-image: none !important;
  border: 2px solid var(--new-line, var(--border-color)) !important;
  border-radius: var(--new-radius, 18px) !important;
  box-shadow: none !important;
  color: var(--new-text, var(--text)) !important;
}
html body.v6-mode #main .profile-hero-bg,
html body.v6-mode #main .profile-hero::before,
html body.v6-mode #main .profile-card::before {
  background: none !important;
  background-image: none !important;
  opacity: 0 !important;
}
html body.v6-mode #main :where(.profile-hero-name, .profile-subheading, .profile-match-name, .profile-arg-q, .profile-circle-pill-name, .profile-compare-title, .notif-row-link p:first-child, .notif-empty h3) {
  color: var(--new-text, var(--text)) !important;
  -webkit-text-fill-color: currentColor !important;
  font-weight: 950 !important;
}
html body.v6-mode #main :where(.profile-bio, .profile-bio-empty, .profile-compare-sub, .profile-match-count, .profile-match-foot, .profile-arg-foot, .profile-circles-note, .notif-row-link p, .notif-row-link span, .notif-empty p) {
  color: var(--new-muted, var(--text-dim)) !important;
}
html body.v6-mode #main :where(.profile-action, .profile-share-link, .profile-chip, .profile-explore-btn, .profile-circle-pill, .profile-compare-chip, .profile-pin-card, .profile-arg-side, .profile-map-bridge, .toy-card, .compat-quiz-choice, .two-truths-choice, .notif-filter-tabs, .notif-filter-tab, .notif-row) {
  background: #000 !important;
  background-image: none !important;
  border: 2px solid var(--new-line, var(--border-color)) !important;
  color: var(--new-text, var(--text)) !important;
  box-shadow: none !important;
}
html body.v6-mode #main :where(.profile-action-primary, .profile-action-following, .profile-bio-save-btn, .profile-match-fill, .profile-hero-pct, .profile-hero-title, .profile-hero-taste-tag, .profile-toy-share .btn-glow.primary, .profile-toy-share .btn-glow:not(.is-secondary), .compat-quiz-choice input:checked + span, .two-truths-choice input:checked + span, .notif-filter-tab.is-active, .notif-toolbar-action, .notif-pager .acct-save) {
  background: var(--new-green, var(--neon-green)) !important;
  background-image: none !important;
  border-color: var(--new-green, var(--neon-green)) !important;
  color: #111 !important;
  box-shadow: none !important;
}
html body.v6-mode #main :where(.profile-action-primary i, .profile-action-following i, .profile-bio-save-btn i, .profile-hero-pct i, .profile-hero-title i, .profile-hero-taste-tag i, .notif-filter-tab.is-active i, .notif-toolbar-action i, .notif-toolbar-action span) {
  color: #111 !important;
}
html body.v6-mode #main :where(.profile-action-secondary, .profile-action-report, .profile-action-block, .profile-toy-sharelink, .profile-toy-delete-btn, .notif-row a[title]) {
  background: #000 !important;
  background-image: none !important;
  border: 2px solid var(--new-line, var(--border-color)) !important;
  color: var(--new-text, var(--text)) !important;
  box-shadow: none !important;
}
html body.v6-mode #main :where(.profile-action:hover, .profile-share-link:hover, .profile-chip:hover, .profile-explore-btn:hover, .profile-circle-pill:hover, .profile-compare-chip:hover, .profile-compare-chip.is-active, .profile-pin-card:hover, .notif-row:hover, .notif-filter-tab:hover, .notif-toolbar-action:hover) {
  border-color: var(--new-green, var(--neon-green)) !important;
  color: var(--new-green, var(--neon-green)) !important;
  transform: translateY(-1px);
}
html body.v6-mode #main .profile-match-bar {
  background: #000 !important;
  border: 2px solid var(--new-line, var(--border-color)) !important;
}
html body.v6-mode #main :where(.profile-match-pct, .profile-match-chev, .profile-arg-vs, .profile-arg-reply, .profile-circles-manage, .profile-chip i, .profile-explore-btn i, .profile-circle-pill-ic, .notif-row-link:hover p:first-child) {
  color: var(--new-green, var(--neon-green)) !important;
}
html body.v6-mode #main .notif-row {
  padding: 12px !important;
  margin-bottom: 8px !important;
  border-radius: var(--new-radius-sm, 14px) !important;
  border-bottom: 2px solid var(--new-line, var(--border-color)) !important;
}
html body.v6-mode #main .notif-row.is-unread::before {
  background: var(--new-green, var(--neon-green)) !important;
  box-shadow: 0 0 12px rgba(var(--ng-rgb),0.68) !important;
}
html body.v6-mode #main .notif-icon {
  background: #000 !important;
  background-image: none !important;
  border: 2px solid var(--new-line, var(--border-color)) !important;
  color: var(--new-green, var(--neon-green)) !important;
}
html body.v6-mode #main :where(.avatar-zoom-stage, .avatar-zoom-close, .avatar-zoom-download) {
  background: var(--new-card, var(--card-bg)) !important;
  border: 2px solid var(--new-line, var(--border-color)) !important;
  color: var(--new-green, var(--neon-green)) !important;
  box-shadow: none !important;
}

html body.v6-mode #scrollUp {
  right: max(18px, env(safe-area-inset-right, 0px)) !important;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px)) !important;
  width: 46px !important;
  height: 46px !important;
  border-radius: 999px !important;
  background: #000 !important;
  background-image: none !important;
  border: 2px solid var(--new-green, var(--neon-green)) !important;
  color: var(--new-green, var(--neon-green)) !important;
  box-shadow: var(--sh, 4px 4px 0 rgba(0,0,0,0.85)) !important;
}
html body.v6-mode #scrollUp::before,
html body.v6-mode #scrollUp i {
  color: var(--new-green, var(--neon-green)) !important;
}
@media (max-width: 720px) {
  html body.v6-mode #scrollUp {
    bottom: calc(88px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

html body.v6-mode footer.weird-native-footer {
  padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)) !important;
}
html body.v6-mode .weird-footer-critical {
  width: min(760px, 100%) !important;
  margin: 0 auto !important;
}
html body.v6-mode .weird-footer-critical a[data-weird-feedback-open] {
  border-color: var(--new-green, var(--neon-green)) !important;
  color: var(--new-green, var(--neon-green)) !important;
}

html body.v6-mode .weird-fb-backdrop {
  background: rgba(var(--bg-rgb),0.86) !important;
}
html body.v6-mode .weird-fb-card {
  background: var(--new-card, var(--card-bg)) !important;
  background-image: none !important;
  border: 2px solid var(--new-line, var(--border-color)) !important;
  border-radius: var(--new-radius, 18px) !important;
  box-shadow: var(--new-shadow, var(--sh, 8px 8px 0 rgba(0,0,0,0.85))) !important;
  color: var(--new-text, var(--text)) !important;
}
html body.v6-mode .weird-fb-card h3,
html body.v6-mode .weird-fb-card h3 i,
html body.v6-mode .weird-fb-form label {
  color: var(--new-green, var(--neon-green)) !important;
}
html body.v6-mode .weird-fb-help,
html body.v6-mode .weird-fb-status {
  color: var(--new-muted, var(--text-dim)) !important;
}
html body.v6-mode .weird-fb-kind,
html body.v6-mode .weird-fb-form textarea,
html body.v6-mode .weird-fb-shot-item,
html body.v6-mode .weird-fb-cancel,
html body.v6-mode .weird-fb-x {
  background: #000 !important;
  background-image: none !important;
  border: 2px solid var(--new-line, var(--border-color)) !important;
  color: var(--new-text, var(--text)) !important;
  box-shadow: none !important;
}
html body.v6-mode .weird-fb-kind:has(input:checked),
html body.v6-mode .weird-fb-submit {
  background: var(--new-green, var(--neon-green)) !important;
  background-image: none !important;
  border-color: var(--new-green, var(--neon-green)) !important;
  color: var(--new-bg, #050505) !important;
  box-shadow: none !important;
}
html body.v6-mode .weird-fb-form textarea:focus,
html body.v6-mode .weird-fb-kind:hover,
html body.v6-mode .weird-fb-x:hover {
  border-color: var(--new-green, var(--neon-green)) !important;
  outline: none !important;
}

@media (max-width: 640px) {
  html body.v6-mode .nav-bar .v6-pop-explore,
  html body.v6-mode .weird-search-popout,
  html body.v6-mode .weird-notif-popout,
  html body.v6-mode .weird-avatar-popout {
    left: max(10px, env(safe-area-inset-left, 0px)) !important;
    right: max(10px, env(safe-area-inset-right, 0px)) !important;
    width: auto !important;
    max-width: none !important;
  }
  html body.v6-mode .nav-bar .v6-pop-grid {
    grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)) !important;
  }
  html body.v6-mode .nav-bar .v6-pop-cat {
    min-height: 76px !important;
    padding: 0.62rem 0.32rem !important;
    font-size: 0.66rem !important;
  }
  html body.v6-mode .weird-search-results,
  html body.v6-mode .weird-notif-list {
    max-height: min(58vh, 460px) !important;
  }
}

/* ============================================================
   V6 mobile — Explore is triggered from the BOTTOM tabbar, so its
   shared popout should rise from just above the bottom nav (a
   bottom-sheet) instead of dropping from the top nav. Tapping
   Explore at the bottom and having the grid appear at the top of
   the screen was a disconnect. Re-anchor the popout to the bottom,
   above .v6-app-tabbar, on the same breakpoint (<=720px) where the
   tabbar is the primary nav. Desktop (>720px, tabbar hidden) keeps
   the top-nav dropdown untouched.

   Two things make this work:
   1) .nav-bar has backdrop-filter, which makes it the containing
      block for position:fixed descendants — so a fixed popout would
      anchor to the tiny top nav, not the viewport. While the explore
      sheet is open we drop that backdrop-filter (via :has), so the
      nav stops being the containing block and the sheet anchors to
      the viewport bottom. The panel is display:none->block in the
      same style recalc, so its first laid-out frame already sees the
      viewport as its containing block (no re-anchor flash).
   2) We target the popout by #id so `top:auto` decisively beats the
      base `.v6-pop { top: calc(100% + 8px) }` (equal-specificity ties
      otherwise leave both top+bottom set, collapsing the sheet).
   Body reserves 76px + safe-area for the tabbar, so anchoring the
   sheet's bottom there floats it a few px above the bar on all devices.
   ============================================================ */
@keyframes v6PopInUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (max-width: 720px) {
  html body.v6-mode .nav-bar:has(#v6NavExplorePop:not([hidden])) {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  html body.v6-mode .nav-bar #v6NavExplorePop.v6-pop-explore {
    position: fixed !important;
    top: auto !important;
    bottom: calc(76px + env(safe-area-inset-bottom, 0px) + 4px) !important;
    left: max(10px, env(safe-area-inset-left, 0px)) !important;
    right: max(10px, env(safe-area-inset-right, 0px)) !important;
    width: auto !important;
    max-width: none !important;
    max-height: min(62vh, 540px) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    animation: v6PopInUp 0.16s ease-out !important;
  }
}

/* ============================================================
   V6 item 3 — purge stray legacy purple. A lot of purple in the
   old theme is hardcoded literals (rgba(124,58,237,*), #a78bfa,
   #8b5cf6, #6d28d9) that bypass the --purple -> green remap. This
   block repaints those specific surfaces with the V6 hero green,
   scoped to body.v6-mode with high specificity + !important so it
   wins over css/v5-override.css and page-inline styles. Real
   category/brand colors (--cat-tv, --cat-music) and decorative
   local-map tones are intentionally left untouched.
   V6 keeps a dark canvas even under html.light-mode, so a single
   dark-optimized green works for both toggles.
   ============================================================ */

/* App bottom-tab active pill — on non-stream pages the active tab is a
   <button>, which the legacy "style every button" rule paints purple.
   Force the V6 green pill (matches the stream, where it is an <a>). */
html body.v6-mode .v6-app-tab.active,
html body.v6-mode .v6-app-tab.is-open,
html body.v6-mode .v6-app-tab[aria-expanded="true"] {
  background-image: none !important;
  background-color: var(--neon-green) !important;
  border-color: var(--neon-green) !important;
  color: #050505 !important;
  box-shadow: 0 4px 14px rgba(var(--ng-rgb),0.22) !important;
}
html body.v6-mode .v6-app-tab.active i,
html body.v6-mode .v6-app-tab.is-open i,
html body.v6-mode .v6-app-tab[aria-expanded="true"] i {
  color: #050505 !important;
}

/* Legacy "primary / active / chosen" states that the old theme paints with
   the purple --brand-action gradient (css/v5-override.css ~11612-11630).
   These grouped members are plain class selectors (low specificity), so a
   body.v6-mode rule cleanly reskins them as the V6 neon pill. We set the
   background AND the text colour together — the legacy rule forces white
   text, which would be unreadable on neon, so dark text is required. */
html body.v6-mode .profile-action-primary,
html body.v6-mode html.light-mode .profile-action-primary,
html body.v6-mode .acct-save,
html body.v6-mode a.acct-profile-cta,
html body.v6-mode a.acct-profile-cta:link,
html body.v6-mode a.acct-profile-cta:visited,
html body.v6-mode .subpage-pill.active,
html body.v6-mode .stream-filter.active,
html body.v6-mode .discover-tab.active,
html body.v6-mode .discover-quiz-opt.chosen,
html body.v6-mode .discover-quiz-opt-tile.chosen,
html body.v6-mode .profile-compare-chip.is-active,
html body.v6-mode .cd-filters a.cd-filter.is-active:not(.cd-filter-agree):not(.cd-filter-differ) {
  background: var(--neon-green) !important;
  background-image: none !important;
  border-color: var(--neon-green) !important;
  color: #050505 !important;
  box-shadow: 0 6px 18px rgba(var(--ng-rgb),0.22) !important;
}
html body.v6-mode .profile-action-primary:hover,
html body.v6-mode .acct-save:hover,
html body.v6-mode a.acct-profile-cta:hover,
html body.v6-mode .subpage-pill.active:hover,
html body.v6-mode .stream-filter.active:hover {
  background: #d6ff33 !important;
  background-image: none !important;
  color: #050505 !important;
}
html body.v6-mode .profile-action-primary i,
html body.v6-mode .acct-save i,
html body.v6-mode a.acct-profile-cta i,
html body.v6-mode .subpage-pill.active i,
html body.v6-mode .discover-quiz-opt.chosen i,
html body.v6-mode .cd-filters a.cd-filter.is-active i {
  color: #050505 !important;
}

/* Account quick-nav (item 32: profile/settings pages) — inactive icons
   were leaking the old purple; make them read as the new green theme.
   Active row keeps its dark-on-green pill treatment. */
html body.v6-mode nav.acct-quicklinks a.acct-quicklink i {
  color: var(--neon-green) !important;
}
html body.v6-mode nav.acct-quicklinks a.acct-quicklink.is-active i {
  color: #050505 !important;
}
html body.v6-mode .acct-quicklink:hover {
  background: rgba(var(--ng-rgb),0.08) !important;
}
html body.v6-mode .acct-quicklinks {
  border-bottom-color: rgba(var(--ng-rgb),0.20) !important;
}
html body.v6-mode .acct-nav-select-wrap {
  background-image: linear-gradient(135deg, rgba(20,184,166,0.11), rgba(var(--ng-rgb),0.10)) !important;
}

/* V6 top nav-link icons (Explore drawer / expanded nav) */
html body.v6-mode .nav-bar .nav-link-icon {
  color: var(--neon-green) !important;
}
html body.v6-mode .nav-bar .nav-link.active .nav-link-icon {
  color: var(--neon-green) !important;
}

/* Poll option letter badges */
html body.v6-mode .dqo-key {
  background: rgba(var(--ng-rgb),0.12) !important;
  border-color: rgba(var(--ng-rgb),0.26) !important;
}
html body.v6-mode .discover-quiz-opt:hover:not(:disabled) .dqo-key {
  background: rgba(var(--ng-rgb),0.24) !important;
  color: #050505 !important;
}

/* Search result highlight */
html body.v6-mode .weird-search-result-name mark {
  background: rgba(var(--ng-rgb),0.24) !important;
}

/* Infinite-scroll skeleton shimmer */
html body.v6-mode .weird-infscroll-skeleton-card-thumb {
  background: radial-gradient(circle at 30% 20%, rgba(var(--ng-rgb),0.20), transparent 34%), rgba(var(--ng-rgb),0.10) !important;
}

/* Tip card */
html body.v6-mode .weird-tip-card {
  background: linear-gradient(180deg, #12160a 0%, #0e1208 100%) !important;
  border-color: rgba(var(--ng-rgb),0.30) !important;
}

/* Greeting popover daily rows */
html body.v6-mode .discover-greet-pop-daily-row {
  border-color: rgba(var(--ng-rgb),0.24) !important;
}
html body.v6-mode .discover-greet-pop-daily-icon {
  background: rgba(var(--ng-rgb),0.18) !important;
  color: var(--neon-green) !important;
}

/* Compare-chip avatar placeholders (profile compare) */
html body.v6-mode .profile-compare-chip-avatar {
  background-color: rgba(var(--ng-rgb),0.14) !important;
}

/* Aura toggle (profile) */
html body.v6-mode .pf-aura-toggle {
  background-image: linear-gradient(135deg, rgba(182,243,210,0.2), rgba(var(--ng-rgb),0.22)) !important;
}

/* Subpage filter kickers / control icons. The winning legacy colour is
   `body .discover-wrap[data-cat]... .subpage-control-kicker i { var(--sub-info) }`
   (0,4,2 !important), so we match that depth + v6-mode to out-rank it. */
html body.v6-mode .discover-wrap[data-cat] .subpage-control-kicker i,
html body.v6-mode .subpage-control-deck .subpage-control-kicker i,
html body.v6-mode .subpage-control-kicker i,
html body.v6-mode .dcib-sec-head i {
  color: var(--neon-green) !important;
}

/* Card media poster placeholder — the loading gradient behind every
   stream/catalog poster carried an 8% purple wash. Neutralise to green. */
html body.v6-mode .discover-card-media img {
  background-image: linear-gradient(135deg, rgba(var(--ng-rgb),0.06), rgba(20,184,166,0.05)) !important;
}

/* Footer critical (feedback) links */
html body.v6-mode .weird-footer-critical a {
  border-color: rgba(var(--ng-rgb),0.20) !important;
}
html body.v6-mode .weird-footer-critical a:hover,
html body.v6-mode .weird-footer-critical a:focus-visible {
  background: rgba(var(--ng-rgb),0.14) !important;
  border-color: rgba(var(--ng-rgb),0.44) !important;
  color: #ffffff !important;
}

/* ------------------------------------------------------------------
   V6 item 3 (cont.) — overlays / popovers / sheets that only appear
   on interaction still carried hardcoded legacy purple
   (rgba(124,58,237,*) / #8b5cf6 / #a78bfa). A V6 user opens these
   (notifications, tip jar, greeting popovers, pull-to-refresh,
   infinite-scroll skeletons, share sheet), so repaint them green too.
   v5-only surfaces that never render in V6 (weird-tabbar,
   weird-explore-sheet) are intentionally left alone. Scoped to
   body.v6-mode so v5 is untouched.
   ------------------------------------------------------------------ */

/* Footer ambient wash — drop the purple stop from the tint layer.
   The base footer bg is set by a high-specificity rule that combines the
   #fbg id with a long body:not(...) chain, so we double the id (#fbg#fbg,
   a valid specificity boost) to guarantee we win. */
html body.v6-mode footer#fbg#fbg.weird-native-footer.weird-footer-essential,
html body.v6-mode footer#fbg#fbg.weird-native-footer,
html body.v6-mode footer.weird-native-footer.weird-footer-essential {
  background-image:
    linear-gradient(rgba(12,14,10,0.72), rgba(12,14,10,0.94)),
    linear-gradient(120deg, rgba(var(--ng-rgb),0.08), rgba(6,182,212,0.06) 46%, rgba(34,197,94,0.07)) !important;
}

/* Notification panel */
html body.v6-mode .weird-notif-spinner {
  border-color: var(--neon-green) rgba(var(--ng-rgb),0.3) rgba(var(--ng-rgb),0.3) !important;
}
html body.v6-mode .weird-notif-foot-link {
  box-shadow: rgba(var(--ng-rgb),0.4) 0px 8px 20px -18px, rgba(255,255,255,0.035) 0px 1px 0px inset !important;
}

/* Tip jar action buttons (legacy purple gradient). These are <button>s
   hit by the ~80-class legacy rule, so we anchor on the modal ID to win. */
html body.v6-mode #weirdTipModal .weird-tip-close,
html body.v6-mode #weirdTipModal .weird-tip-amt,
html body.v6-mode #weirdTipModal .weird-tip-send {
  background: var(--neon-green) !important;
  background-image: none !important;
  border-color: var(--neon-green) !important;
  color: #050505 !important;
  box-shadow: 0 4px 14px rgba(var(--ng-rgb),0.22) !important;
}
html body.v6-mode #weirdTipModal .weird-tip-amt:not(.is-active) {
  background: rgba(var(--ng-rgb),0.10) !important;
  background-image: none !important;
  color: #eaffb0 !important;
}

/* Greeting card popovers / chips / actions */
html body.v6-mode .discover-greet-stats-pop-btn {
  background-color: rgba(var(--ng-rgb),0.14) !important;
  border-color: rgba(var(--ng-rgb),0.28) !important;
}
html body.v6-mode .discover-greet-stats-pop-panel {
  border-color: rgba(var(--ng-rgb),0.30) !important;
  box-shadow: rgba(0,0,0,0.55) 0px 18px 40px -18px, rgba(var(--ng-rgb),0.10) 0px 0px 0px 1px inset !important;
}
html body.v6-mode .discover-acc-action.is-primary {
  background-image: linear-gradient(135deg, rgba(6,182,212,0.24), rgba(var(--ng-rgb),0.26)) !important;
  color: #050505 !important;
}
html body.v6-mode .discover-greet-pop .discover-greet-pop-daily-act,
html body.v6-mode .discover-greet-pop.is-daily-pulse .discover-greet-pop-daily-act {
  background-color: rgba(var(--ng-rgb),0.30) !important;
  color: #050505 !important;
}
html body.v6-mode .discover-greet-pop-cta {
  background-color: rgba(var(--ng-rgb),0.18) !important;
  border-color: rgba(var(--ng-rgb),0.34) !important;
  box-shadow: rgba(var(--ng-rgb),0.5) 0px 8px 20px -16px !important;
  color: #eaffb0 !important;
}

/* Signal strip (greeting) */
html body.v6-mode .discover-signal-strip-head,
html body.v6-mode .discover-signal-chip {
  border-color: rgba(var(--ng-rgb),0.18) !important;
}
html body.v6-mode .discover-signal-strip-head span {
  color: #eaffb0 !important;
}
html body.v6-mode .discover-signal-strip-head i.fa-wave-square,
html body.v6-mode .discover-signal-strip-head span i,
html body.v6-mode .discover-signal-chip i {
  color: var(--neon-green) !important;
}

/* Accuracy meter fill (greeting popover) — cyan->purple becomes cyan->green */
html body.v6-mode .discover-acc-meter span,
html body.v6-mode .discover-acc-meter > span {
  background-image: linear-gradient(90deg, #22d3ee, var(--neon-green) 60%, #a3e635 100%) !important;
  border-color: rgba(var(--ng-rgb),0.5) !important;
  color: #050505 !important;
}

/* Quiz creator inline card */
html body.v6-mode .discover-quiz-creator {
  background-color: rgba(var(--ng-rgb),0.08) !important;
  border-color: rgba(var(--ng-rgb),0.22) !important;
}

/* Infinite-scroll skeleton card body */
html body.v6-mode .weird-infscroll-skeleton-card {
  background-image: linear-gradient(rgba(var(--ng-rgb),0.08), rgba(15,23,42,0.72)) !important;
}

/* Circles menu popover shadow */
html body.v6-mode .vb-circles-menu {
  box-shadow: rgba(0,0,0,0.55) 0px 18px 44px -18px, rgba(var(--ng-rgb),0.16) 0px 0px 0px 1px inset !important;
}

/* Message share sheet active tab */
html body.v6-mode .weird-message-share-tab.is-active {
  box-shadow: rgba(var(--ng-rgb),0.6) 0px 8px 18px -14px !important;
}

/* Pull-to-refresh spinner (top arc already green; recolour the rest) */
html body.v6-mode .weird-ptr-spinner {
  border-color: var(--neon-green) rgba(var(--ng-rgb),0.25) rgba(var(--ng-rgb),0.25) !important;
}

/* V6 item 3 — reachable overlay chrome (action sheet, share sheet, subpage segmented) */
html body.v6-mode .subpage-segmented {
  border-color: rgba(var(--ng-rgb),0.18) !important;
}
html body.v6-mode .subpage-segmented i {
  color: var(--neon-green) !important;
}
html body.v6-mode .weird-action-sheet-thumb {
  background-color: rgba(var(--ng-rgb),0.14) !important;
}
html body.v6-mode .weird-message-share-thumb {
  background-color: rgba(var(--ng-rgb),0.14) !important;
}
html body.v6-mode .weird-message-share-card {
  border-color: rgba(var(--ng-rgb),0.36) !important;
}
html body.v6-mode .weird-message-share-tab.is-active {
  background: linear-gradient(135deg, rgba(var(--ng-rgb),0.92), rgba(20,184,166,0.82)) !important;
  color: #050505 !important;
  box-shadow: 0 8px 18px -14px rgba(var(--ng-rgb),0.9) !important;
}
html body.v6-mode .weird-message-share-tab.is-active span {
  color: #050505 !important;
}

/* V6 item 3 — profile account-nav select wrap + CTA eyebrow badge */
html body.v6-mode .acct-nav-select-wrap {
  background: linear-gradient(135deg, rgba(20,184,166,.11), rgba(var(--ng-rgb),.10)) !important;
  border-color: rgba(var(--ng-rgb),0.22) !important;
}
html body.v6-mode .discover-card-cta-eyebrow {
  background: rgba(var(--ng-rgb),0.10) !important;
  border-color: rgba(var(--ng-rgb),0.28) !important;
}

/* V6 item 3 — pseudo-element purple accents (avatar halos, quiz-card top accent, greeting glow) */
html body.v6-mode .weird-av::before,
html body.v6-mode .weird-avatar-halo::before,
html body.v6-mode .weird-avatar-halo-trigger::before,
html body.v6-mode .weird-avatar-halo-menu::before,
html body.v6-mode .discover-card-av-wrap::before,
html body.v6-mode .weird-av.has-mood::before {
  background: linear-gradient(135deg, var(--neon-green) 0%, #14b8a6 100%) !important;
  box-shadow: 0 4px 14px rgba(var(--ng-rgb),.22) !important;
}
html body.v6-mode .profile-hero-avatar-zoom {
  background: linear-gradient(135deg, var(--neon-green) 0%, #14b8a6 100%) !important;
  background-image: linear-gradient(135deg, var(--neon-green) 0%, #14b8a6 100%) !important;
  box-shadow: 0 4px 14px rgba(var(--ng-rgb),.22) !important;
}
html body.v6-mode .discover-quiz-card::before,
html body.v6-mode .discover-quiz-card.discover-quiz-card-ongoing::before {
  background: linear-gradient(90deg, var(--neon-green) 0%, #14b8a6 52%, #0891b2 100%) !important;
}
html body.v6-mode .discover-greet-combined::before {
  box-shadow: 0 0 12px rgba(var(--ng-rgb),.18) !important;
}
html body.v6-mode .stream-filters::-webkit-scrollbar-thumb,
html body.v6-mode .auth-avatars::-webkit-scrollbar-thumb,
html body.v6-mode .acct-avatars::-webkit-scrollbar-thumb {
  background: rgba(var(--ng-rgb),0.45) !important;
}

/* V6 items 17/18/23/25 — density pass: slightly wider cards, minimize excessive card padding */
html body.v6-mode.page-discover #main .discover-stream > .discover-quiz-card,
html body.v6-mode.page-discover #main .discover-stream > .discover-card-cta,
html body.v6-mode.page-discover #main .discover-stream > .discover-quiz-card-instream {
  padding: 16px !important;
}
@media (max-width: 560px) {
  html body.v6-mode.page-discover #main .discover-wrap.feed,
  html body.v6-mode.page-discover #main .discover-wrap-signal-board,
  html body.v6-mode.page-discover #main .discover-wrap-stream {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}

/* ============================================================
   V6 items 30/32/3 — Play (pvp.php), Connect (connect.php), and
   shared profile-subpage purple purge. These secondary surfaces
   are structurally V6 already; only stray legacy purple accents
   leaked (avatar fallbacks, avatar borders, subpage-pill icons,
   mode tabs, AI game-rec cards, glows). Remap to the V6 neon /
   teal palette. Intentional category identity colors (TV #b033ff,
   coral/yellow/green AI banners, etc.) are NOT touched — every
   selector below is component-specific to a purple leak. */

/* Avatar fallback gradients (shown when a user has no photo) */
html body.v6-mode .pvp-match-avatar-chip,
html body.v6-mode .pvp-pick-avatar,
html body.v6-mode .pvp-solo-win-avatar,
html body.v6-mode .pvp-solo-win-avatar-fallback,
html body.v6-mode .pvp-h2h-avatar,
html body.v6-mode .pvp-h2h-avatar-fallback {
  background: linear-gradient(135deg, #14b8a6, #0891b2) !important;
  color: #fff !important;
}

/* Avatar image ring/border (Connect + profile people cards) */
html body.v6-mode .discover-card-avatar-img {
  border-color: rgba(var(--ng-rgb),.40) !important;
}

/* Subpage / audience pill icons (were #a78bfa) — match their label */
html body.v6-mode .subpage-pill i,
html body.v6-mode .pvp-audience-pill i,
html body.v6-mode .discover-audience-pill i {
  color: inherit !important;
}

/* Connect mode-tabs container */
html body.v6-mode .connect-modetabs {
  background: rgba(var(--ng-rgb),.06) !important;
  border-color: rgba(var(--ng-rgb),.20) !important;
}

/* Card-rhythm rotating tones carried legacy purple/violet (and a purple
   card border). Remap the purple-bearing tone variables to the V6 neon/teal
   palette. Defined on body.v6-mode so proximity beats card-rhythm's :root /
   html.light-mode definitions in BOTH themes; the aqua tone is already on-brand.
   This neutralizes the AI game-rec card wash + every 4n rhythm card at once. */
html body.v6-mode {
  --wr-card-border: rgba(var(--ng-rgb),.18) !important;
  --wr-tone-purple: linear-gradient(135deg, rgba(var(--ng-rgb),.10), rgba(20,184,166,.05)), var(--wr-card-base) !important;
  --wr-tone-violet: linear-gradient(135deg, rgba(20,184,166,.11), rgba(6,182,212,.05)), #12211f !important;
  --wr-tone-amber: linear-gradient(135deg, rgba(249,115,22,.085), rgba(20,184,166,.05)), #181b34 !important;
}
html.light-mode body.v6-mode {
  --wr-card-border: rgba(77,122,0,.16) !important;
  --wr-tone-purple: linear-gradient(135deg, rgba(var(--ng-rgb),.06), rgba(20,184,166,.028)), #ffffff !important;
  --wr-tone-violet: linear-gradient(135deg, rgba(20,184,166,.06), rgba(6,182,212,.028)), #ffffff !important;
  --wr-tone-amber: linear-gradient(135deg, rgba(249,115,22,.05), rgba(20,184,166,.025)), #ffffff !important;
}
/* AI banner: green the purple-carrying base + cyan; keep coral/yellow/green */
html body.v6-mode .discover-card-ai-banner:not(.cyan):not(.coral):not(.yellow):not(.green) {
  background: linear-gradient(135deg, var(--neon-green) 0%, #14b8a6 100%) !important;
}
html body.v6-mode .discover-card-ai-banner.cyan {
  background: linear-gradient(135deg, #06b6d4 0%, #14b8a6 100%) !important;
}
/* AI type badge */
html body.v6-mode .discover-card-ai-type {
  background: linear-gradient(135deg, var(--neon-green), #14b8a6) !important;
  border-color: rgba(var(--ng-rgb),.55) !important;
  box-shadow: 0 10px 24px -12px rgba(var(--ng-rgb),.5) !important;
  color: #0a0a0a !important;
}

/* Rating-pill glow (was purple box-shadow) */
html body.v6-mode .discover-card-pct {
  box-shadow: 0 10px 24px -14px rgba(var(--ng-rgb),.45) !important;
}

/* pvp collection card ambient glow (pvp-coll::before) */
html body.v6-mode .pvp-coll::before {
  box-shadow: 0 0 12px 0 rgba(var(--ng-rgb),.16) !important;
}

/* pvp pack icon + count chips */
html body.v6-mode .pvp-pack-icon {
  background: linear-gradient(135deg, var(--neon-green), #14b8a6) !important;
  box-shadow: 0 9px 18px -13px rgba(var(--ng-rgb),.55) !important;
  color: #0a0a0a !important;
}
html body.v6-mode .pvp-pack-counts span {
  background: rgba(var(--ng-rgb),.12) !important;
  border-color: rgba(var(--ng-rgb),.22) !important;
  color: #d7ff6b !important;
}
html.light-mode body.v6-mode .pvp-pack-counts span {
  color: #4d7a00 !important;
}

/* pvp guest-view (logged-out) purple accents */
html body.v6-mode .pvp-guest-hero {
  background: linear-gradient(135deg, rgba(var(--ng-rgb),.12), rgba(20,184,166,.06)), rgba(255,255,255,.04) !important;
}
html body.v6-mode .pvp-guest-hero-icon,
html body.v6-mode .pvp-guest-btn.primary,
html body.v6-mode .pvp-guest-tab.is-active {
  background: linear-gradient(135deg, var(--neon-green), #14b8a6) !important;
  color: #0a0a0a !important;
}
html body.v6-mode .pvp-guest-btn.secondary {
  background: rgba(var(--ng-rgb),.12) !important;
  border-color: rgba(var(--ng-rgb),.28) !important;
}
html body.v6-mode .pvp-guest-card-icon,
html body.v6-mode .pvp-guest-lock {
  background: rgba(var(--ng-rgb),.14) !important;
}

/* V6 items 27/28 — avatar/profile dropdown menu icons carried legacy
   purple (#c4b5fd / rgba(196,181,253)). Remap to the V6 neon accent so the
   profile popdown reads on-theme in both modes. */
html body.v6-mode .weird-avatar-menu-item i {
  color: var(--neon-green, var(--neon-green)) !important;
}
html body.v6-mode .weird-avatar-theme-row i,
html body.v6-mode .weird-avatar-menu-signout i {
  color: rgba(var(--ng-rgb),.58) !important;
}
html.light-mode body.v6-mode .weird-avatar-menu-item i {
  color: #4d7a00 !important;
}
html.light-mode body.v6-mode .weird-avatar-theme-row i,
html.light-mode body.v6-mode .weird-avatar-menu-signout i {
  color: rgba(77,122,0,.62) !important;
}
/* ============================================================
   V6 item 30 — tournament panels on Play (_tournament_panel.php +
   _tournament_crosspromo.php) carried pervasive legacy purple
   (#c4b5fd text, rgba(124,58,237) icon/panel washes). Remap to the
   V6 neon/teal palette. V6 forces a dark canvas even under light
   mode, so both dark + light-mode V6 get the dark-friendly treatment. */

/* purple text/icon color -> readable green */
html body.v6-mode .tour-choice-foot,
html body.v6-mode .tour-choice-icon,
html body.v6-mode .tour-climb-card .tour-climb-nudge a,
html body.v6-mode .tour-climb-pts,
html body.v6-mode .tour-format-kicker,
html body.v6-mode .tour-list-cta i,
html body.v6-mode .tour-path-icon,
html body.v6-mode .tour-race-lane-icon,
html body.v6-mode .tour-race-prize-row b,
html body.v6-mode .tour-source-link,
html body.v6-mode .tour-weekly-lane em,
html body.v6-mode .tour-weekly-lane-icon {
  color: #d7ff6b !important;
}

/* icon chips: purple-tint bg -> neon-tint bg + neon glyph */
html body.v6-mode .tour-choice-icon,
html body.v6-mode .tour-path-icon,
html body.v6-mode .tour-race-lane-icon,
html body.v6-mode .tour-weekly-lane-icon {
  background: rgba(var(--ng-rgb),.15) !important;
  color: var(--neon-green) !important;
}

/* gradient panels: purple wash -> teal/neon wash on dark */
html body.v6-mode .tour-path-card,
html body.v6-mode .tour-race-prizes {
  background: linear-gradient(135deg, rgba(20,184,166,.12), rgba(var(--ng-rgb),.06)), rgba(15,23,42,.42) !important;
  border-color: rgba(var(--ng-rgb),.18) !important;
}

/* tinted pills/labels: purple tint -> neon tint */
html body.v6-mode .tour-climb-nudge,
html body.v6-mode .tour-pick-options label,
html body.v6-mode .tour-weekly-chip,
html body.v6-mode .tour-weekly-prize {
  background: rgba(var(--ng-rgb),.12) !important;
  border-color: rgba(var(--ng-rgb),.20) !important;
}

/* light-mode V6 keeps the same dark-friendly greens (canvas is dark) */
html.light-mode body.v6-mode .tour-choice-icon,
html.light-mode body.v6-mode .tour-path-icon,
html.light-mode body.v6-mode .tour-race-lane-icon,
html.light-mode body.v6-mode .tour-weekly-lane-icon {
  background: rgba(var(--ng-rgb),.15) !important;
  color: #9bd400 !important;
}
html.light-mode body.v6-mode .tour-path-card,
html.light-mode body.v6-mode .tour-race-prizes {
  background: linear-gradient(135deg, rgba(20,184,166,.12), rgba(var(--ng-rgb),.06)), rgba(15,23,42,.42) !important;
  border-color: rgba(var(--ng-rgb),.18) !important;
}

/* card-rhythm's violet (4n) slot hardcodes a purple border (rgba(167,139,250,.20))
   not via the tone var; green it under V6 only so v5 rhythm is untouched. */
html body.v6-mode .discover-stream > .discover-card:nth-child(4n),
html body.v6-mode .discover-stream > .discover-card-ai:nth-child(4n),
html body.v6-mode .pvp-game-cards > .discover-card:nth-child(4n),
html body.v6-mode .pvp-solo-grid > .pvp-solo-card:nth-child(4n),
html body.v6-mode .pvp-lobby-list > .pvp-lobby-card:nth-child(4n),
html body.v6-mode .ans-card:nth-of-type(4n) {
  border-color: rgba(20,184,166,.22) !important;
}

/* ============================================================
   V6 item 30 — residual pvp.php inline-purple internals:
   collapsible count/chevron/title-icons, mode-tab icon chip,
   "+N more" avatar gradient, active audience pill gradient+glow,
   and the mobile tabbar's purple top hairline. Remap to neon/teal.
   Scoped html body.v6-mode (+ light-mode V6, dark canvas). */
html body.v6-mode .pvp-coll-count,
html.light-mode body.v6-mode .pvp-coll-count {
  background: rgba(var(--ng-rgb),.20) !important;
  color: #d7ff6b !important;
}
html body.v6-mode .pvp-coll > details[open] > summary .pvp-coll-chevron {
  background: rgba(var(--ng-rgb),.18) !important;
}
html body.v6-mode .pvp-coll-title > i:first-child,
html.light-mode body.v6-mode .pvp-coll-title > i:first-child {
  color: #d7ff6b !important;
}
html body.v6-mode .pvp-mode-tab > span:first-of-type > i,
html.light-mode body.v6-mode .pvp-mode-tab > span:first-of-type > i {
  background: rgba(var(--ng-rgb),.20) !important;
  color: #eafff0 !important;
}
html body.v6-mode .pvp-match-avatar-chip.pvp-match-avatar-more {
  background: linear-gradient(135deg, #0f766e, #14b8a6) !important;
  border-color: rgba(var(--ng-rgb),.35) !important;
}
html body.v6-mode .pvp-audience-pillrow .pvp-audience-pill.is-active,
html body.v6-mode .pvp-audience-pillrow .pvp-audience-pill.is-active:hover,
html body.v6-mode .pvp-audience-pillrow .pvp-audience-pill.is-active:focus-visible,
html.light-mode body.v6-mode .pvp-audience-pillrow .pvp-audience-pill.is-active,
html.light-mode body.v6-mode .pvp-audience-pillrow .pvp-audience-pill.is-active:hover,
html.light-mode body.v6-mode .pvp-audience-pillrow .pvp-audience-pill.is-active:focus-visible {
  background: linear-gradient(135deg, #16a34a, #0891b2) !important;
  box-shadow: rgba(8,145,178,.45) 0px 6px 16px -8px !important;
}
html body.v6-mode .weird-tabbar {
  box-shadow: rgba(0,0,0,.95) 0px -14px 34px -28px, rgba(var(--ng-rgb),.16) 0px -1px 0px 0px inset, rgba(255,255,255,.04) 0px 1px 0px 0px inset !important;
}

/* ============================================================
   V6 item 30 — neutralize the site-wide "V6.8 patch 155" purple/plum
   chip language (nav/filter/subpage/action chips + soft card shadows).
   Remap the whole --weird-chip-* family to the V6 neon/teal palette via
   body.v6-mode proximity (beats :root; also covers light-mode V6 which
   renders on a dark canvas). Single-point fix across explore/connect/
   subpages. */
html body.v6-mode,
html.light-mode body.v6-mode {
  --weird-chip-idle-bg: rgba(20,30,20,0.82);
  --weird-chip-idle-border: rgba(var(--ng-rgb),0.30);
  --weird-chip-idle-text: #eafff0;
  --weird-chip-icon: var(--neon-green);
  --weird-chip-active-bg: linear-gradient(135deg, #166534 0%, #16a34a 52%, #0891b2 100%);
  --weird-chip-active-border: rgba(var(--ng-rgb),0.70);
  --weird-chip-active-shadow: 0 12px 28px -16px rgba(8,145,178,0.60), 0 0 0 1px rgba(255,255,255,0.14) inset;
  --weird-chip-soft-shadow: 0 8px 20px -18px rgba(8,145,178,0.50), 0 0 0 1px rgba(255,255,255,0.035) inset;
}

/* ============================================================
   V6 item 30 — connect.php residual purple: mode-switch box-shadow,
   tile avatar image border, and mode-tab icon chip bg. Green under V6. */
html body.v6-mode .connect-modetabs,
html body.v6-mode .weird-modeswitch {
  border-color: rgba(var(--ng-rgb),.30) !important;
  box-shadow: rgba(8,145,178,.45) 0px 10px 30px -22px !important;
}
html body.v6-mode .connect-tile-avatar img {
  border-color: rgba(var(--ng-rgb),.42) !important;
}
html body.v6-mode .connect-modetab > span:first-of-type > i,
html body.v6-mode .weird-modetab > span:first-of-type > i {
  background: rgba(var(--ng-rgb),.20) !important;
  color: #eafff0 !important;
}

/* ============================================================
   V6 item 32 — profile.php residual purple. --purple/--brand-pop-line
   are already green-remapped, but these HARDCODE purple: the aura accent
   bars (#a78bfa mid-stop), the shared card ::before glow (rgba(124,58,237,.22)),
   the aura subtitle text (#e5dbff), and the chiprow scroll hint. Green under V6. */

/* shared card ::before purple glow -> teal glow */
html body.v6-mode .discover-bar::before,
html body.v6-mode .discover-greet::before,
html body.v6-mode .profile-card::before,
html body.v6-mode .acct-card:not(.acct-card-theme)::before,
html body.v6-mode .acct-rp-card::before,
html body.v6-mode .profile-compare::before,
html body.v6-mode .cd-hero::before,
html body.v6-mode .cd-row::before,
html body.v6-mode .pulse-widget::before,
html body.v6-mode .streak-widget::before,
html body.v6-mode .hub-cta::before,
html body.v6-mode .connect-strip-wrap::before {
  box-shadow: rgba(8,145,178,.22) 0px 0px 14px !important;
}

/* aura accent bars: replace #a78bfa mid-stop with teal->neon */
html body.v6-mode .pf-aura-card::before {
  background: linear-gradient(#b6f3d2 0%, #14b8a6 55%, var(--neon-green) 100%) !important;
}
html body.v6-mode.page-profile .profile-compare::before,
html body.v6-mode.page-profile .profile-card::before {
  background: linear-gradient(#b6f3d2, #14b8a6 62%, var(--neon-green)) !important;
}

/* aura subtitle text -> soft green */
html body.v6-mode .pf-aura-card .pf-aura-sub {
  color: #9fe6c0 !important;
}

/* chiprow scroll hint blob -> teal */
html body.v6-mode .profile-compare-chiprow.js-scroll-hint::after,
html body.v6-mode .js-scroll-hint::after {
  background: rgba(8,145,178,.85) !important;
}

/* active compare chip gradient purple stop -> teal */
html body.v6-mode.page-profile .profile-compare-chip.is-active {
  background: linear-gradient(135deg, #0f766e, #16a34a) !important;
  border-color: rgba(182,243,210,.42) !important;
}

/* ============================================================
   V6 items 30/32 — OKLCH violet accent palette (hue 288) that rgb-space
   scans could not see. Remap the profile/stream/shell violet families to
   neon-green, and override the 3 hardcoded oklch-purple rules. Scoped V6. */
html body.v6-mode {
  --profile-violet: oklch(86% 0.20 124);
  --profile-violet-soft: oklch(86% 0.20 124 / .12);
  --profile-violet-line: oklch(86% 0.20 124 / .34);
  --stream-violet: oklch(86% 0.20 124);
  --stream-violet-soft: oklch(86% 0.20 124 / .12);
  --stream-violet-line: oklch(86% 0.20 124 / .34);
  --shell-violet: oklch(86% 0.20 124);
  --shell-violet-soft: oklch(86% 0.20 124 / .10);
  --shell-violet-line: oklch(86% 0.20 124 / .28);
}
/* hardcoded oklch purple -> green/teal */
html body.v6-mode.page-profile .profile-match-challenge {
  background: linear-gradient(135deg, oklch(42% 0.13 150 / .74), oklch(38% 0.11 62 / .66)) !important;
}
html.light-mode body.v6-mode.page-profile .profile-hero .profile-action.profile-action-primary,
html.light-mode body.v6-mode.page-profile .profile-hero a.profile-action.profile-action-primary,
html.light-mode body.v6-mode.page-profile .profile-hero a.profile-action.profile-action-primary:link,
html.light-mode body.v6-mode.page-profile .profile-hero a.profile-action.profile-action-primary:visited,
html.light-mode body.v6-mode.page-profile #main .profile-hero button.profile-action.profile-action-primary {
  background: var(--neon-green) !important;
  background-image: none !important;
  border-color: var(--neon-green) !important;
  color: #050505 !important;
  box-shadow: 0 8px 20px -12px rgba(var(--ng-rgb),.5) !important;
}

/* V6 item 32 — profile.php .pmc-share button hardcodes an inline !important
   purple gradient; it now reads --pmc-share-a/-b (v5 fallback = purple).
   Remap those vars to green/teal under V6 (cascade resolves them even for
   inline !important declarations). */
html body.v6-mode {
  --pmc-share-a: #16a34a;
  --pmc-share-b: #0891b2;
}

/* V6 item 30 — pvp.php "waiting for opponent" timeout note used a lavender
   white (#e9e6f5); neutralize the faint purple tint under V6. */
html body.v6-mode .pvp-timeout-note,
html body.v6-mode .pvp-timeout-note i {
  color: #cdd8d2 !important;
}

/* V6 item 30/32 — taste-map + shared next-rail chrome purple purge.
   Node palette (per-category identity colors like the --cat-* legend) is
   intentionally preserved; only theme chrome is retinted. */
html body.v6-mode .tm-namesearch {
  background: rgba(20,184,166,0.08) !important;
  border-color: rgba(20,184,166,0.30) !important;
}
html body.v6-mode .tm-namesearch button {
  background: linear-gradient(135deg, #14b8a6, #0891b2) !important;
  color: #001b16 !important;
}
html body.v6-mode .wn-next-card.is-primary {
  background: linear-gradient(135deg, #0f766e, #0891b2) !important;
}

/* ===== V6 item 32 — account settings (editinfo.php) purple purge ===== */
/* Avatar generator: var-driven palette remap fixes step-num gradient, Go
   button, file-cta accent, hero icon, likeness surface fallback in one shot. */
html body.v6-mode .acct-avgen {
  --avg-bg: #0d0d0d;
  --avg-bg-2: #141414;
  --avg-bg-3: #1c1c1c;
  --avg-accent: #14b8a6;
  --avg-accent-2: #0891b2;
  --avg-surface-2: rgba(20,184,166,0.06);
}
html body.v6-mode .acct-avgen-cost {
  background: linear-gradient(135deg, rgba(20,184,166,0.20), rgba(8,145,178,0.15)) !important;
}
html body.v6-mode .acct-avgen-likeness-opt:hover {
  background: rgba(20,184,166,0.10) !important;
}
html body.v6-mode .acct-avgen-likeness-opt:has(input:checked) {
  background: linear-gradient(135deg, #14b8a6 0%, #0891b2 100%) !important;
  box-shadow: 0 2px 6px rgba(20,184,166,0.25) !important;
}
/* Metro pill, avatar chips, avatar option active state, mood widgets, manage. */
html body.v6-mode #main .acct-primary-metro-pill,
html body.v6-mode #main .acct-mood-pill,
html body.v6-mode #main .acct-avatar-opt.is-active {
  background: rgba(20,184,166,0.16) !important;
}
html body.v6-mode #main .acct-avatars-chip-count {
  background: rgba(20,184,166,0.22) !important;
}
html body.v6-mode #main .acct-avatars-chip-desc,
html body.v6-mode #main .acct-mood-preview {
  background: rgba(20,184,166,0.06) !important;
}
html body.v6-mode #main .acct-avatar-opt.is-active {
  box-shadow: 0 0 0 2px rgba(20,184,166,0.40) !important;
}
html body.v6-mode #main .acct-mood-wrap {
  border-color: rgba(20,184,166,0.30) !important;
}
html body.v6-mode #main .acct-mood-preview {
  border-color: rgba(20,184,166,0.22) !important;
}
html body.v6-mode #main .dcib-submit,
html body.v6-mode #main .dcib-submit.dcib-manage-link {
  background: linear-gradient(135deg, #14b8a6, #0891b2) !important;
  box-shadow: 0 8px 20px -12px rgba(20,184,166,0.45) !important;
}
/* Avatar frame: retint the loaded-image purple ring site-wide under V6. */
html body.v6-mode .weird-av .weird-img-fade.is-loaded {
  border-color: rgba(20,184,166,0.35) !important;
}

/* V6 — taste-map TV node used a generic lavender (#a78bfa) inconsistent with
   the site's TV brand color; align it to --cat-tv magenta (a keep). The var is
   set inline via JS, so !important on the custom property wins the cascade and
   flows to the node icon, border, and SVG line stroke. */
html body.v6-mode .tm-node[data-key="tv"] { --node-color: #b033ff !important; }

/* ===== V6 item 26/30 — Circles (circles.php) purple purge.
   The page had ZERO V6 coverage. --purple/--surface are already remapped
   globally; these rules retint the hardcoded rgba(124,58,237,x) chrome and
   set --brand (which drives .circles-cta). ===== */
html body.v6-mode.page-circles { --brand: #14b8a6; }
html body.v6-mode.page-circles .circles-cta,
html body.v6-mode.page-circles button.circles-cta {
  background: linear-gradient(135deg, #14b8a6, #0891b2) !important;
}
html body.v6-mode.page-circles .circles-tabs { border-bottom-color: rgba(20,184,166,0.20) !important; }
html body.v6-mode.page-circles .circles-tabs a.is-active { background: rgba(20,184,166,0.18) !important; }
html body.v6-mode.page-circles .circles-tabs a.is-active::after { background: linear-gradient(135deg,#14b8a6,#0891b2) !important; }
html body.v6-mode.page-circles .circles-tabs a.circles-tab-out { background: rgba(20,184,166,0.12) !important; }
html body.v6-mode.page-circles .circles-tabs a.circles-tab-out:hover { background: rgba(20,184,166,0.22) !important; }
html body.v6-mode.page-circles .circle-card,
html body.v6-mode.page-circles .circle-single-head,
html body.v6-mode.page-circles .circle-empty,
html body.v6-mode.page-circles .circle-edit-pane,
html body.v6-mode.page-circles .circles-wrap .profile-card { border-color: rgba(20,184,166,0.20) !important; }
html body.v6-mode.page-circles .circle-card {
  background: linear-gradient(160deg, rgba(20,184,166,0.06), rgba(20,184,166,0.03) 34%, rgba(0,0,0,0) 100%), var(--surface,#111111) !important;
}
html body.v6-mode.page-circles .circle-card:hover {
  background: linear-gradient(160deg, rgba(20,184,166,0.10), rgba(20,184,166,0.04) 35%, rgba(0,0,0,0) 100%), var(--surface-hover,#171717) !important;
  border-color: rgba(20,184,166,0.34) !important;
}
html body.v6-mode.page-circles .circles-create-modal {
  border-color: rgba(20,184,166,0.24) !important;
  background: linear-gradient(180deg, rgba(20,184,166,0.08), rgba(20,184,166,0.03) 22%, transparent 48%), var(--surface,#141414) !important;
  box-shadow: 0 34px 86px -44px rgba(0,0,0,0.95), 0 0 0 1px rgba(20,184,166,0.12) !important;
}
html body.v6-mode.page-circles .circle-member-row .role-pill { background: rgba(20,184,166,0.20) !important; color: #9fe6c0 !important; }
html body.v6-mode.page-circles .circle-interest-chip { background: rgba(20,184,166,0.16) !important; border-color: rgba(20,184,166,0.32) !important; }
html body.v6-mode.page-circles .circle-card-tagline,
html body.v6-mode.page-circles .circle-tagline { color: #9fe6c0 !important; }
html body.v6-mode.page-circles .circles-member-result img,
html body.v6-mode.page-circles .circle-member-row img,
html body.v6-mode.page-circles .circle-card-avatars img,
html body.v6-mode.page-circles #circle-chat .msg-row img.msg-avatar { background: rgba(20,184,166,0.10) !important; border-color: rgba(20,184,166,0.25) !important; }
html body.v6-mode.page-circles .circle-watch-count { background: rgba(20,184,166,0.10) !important; border-color: rgba(20,184,166,0.22) !important; }
html body.v6-mode.page-circles .circle-watch-why i { color: #9fe6c0 !important; }
html body.v6-mode.page-circles .circle-watch-showdown,
html body.v6-mode.page-circles .circle-watch-queue,
html body.v6-mode.page-circles .circle-watch-chaos { background: rgba(20,184,166,0.07) !important; border-color: rgba(20,184,166,0.20) !important; }
html body.v6-mode.page-circles .circles-vis-option.is-checked {
  background: linear-gradient(135deg, rgba(20,184,166,0.28), rgba(20,184,166,0.12)) !important;
  border-color: rgba(20,184,166,0.8) !important;
  box-shadow: 0 8px 24px -8px rgba(20,184,166,0.35), inset 0 0 0 1px rgba(20,184,166,0.25) !important;
}
html body.v6-mode.page-circles .circle-chat-body::-webkit-scrollbar-thumb { background: rgba(20,184,166,0.5) !important; }

/* V6 Circles — single-circle view widgets (memory wall, weekly picks, watch
   party alibi, chat composer/avatar, shared back button). */
html body.v6-mode .discover-bar-back.is-icon {
  background: rgba(20,184,166,0.14) !important;
  border-color: rgba(20,184,166,0.30) !important;
  color: var(--new-green,#ccff00) !important;
}
html body.v6-mode .discover-bar-back.is-icon:hover {
  background: #14b8a6 !important;
  color: #04211d !important;
}
html body.v6-mode.page-circles .circle-chat-composer { border-top-color: rgba(20,184,166,0.18) !important; }
html body.v6-mode.page-circles .msg-avatar.msg-row-avatar {
  box-shadow: 0 0 0 2px rgba(255,255,255,0.78), 0 7px 18px -12px rgba(20,184,166,0.7) !important;
}
html body.v6-mode.page-circles #circle-chat .msg-row-me .msg-bubble { box-shadow: 0 6px 16px -10px rgba(20,184,166,0.6) !important; }
html body.v6-mode.page-circles #circle-chat .msg-row-them .msg-bubble { background: rgba(20,184,166,0.08) !important; border-color: rgba(20,184,166,0.18) !important; }
html body.v6-mode.page-circles .circle-watch-showdown-btn em { color: #9fe6c0 !important; }
html body.v6-mode.page-circles .circle-watch-alibi,
html body.v6-mode.page-circles .circle-watch-alibi i { color: #9fe6c0 !important; }
html body.v6-mode.page-circles .circle-wall .wall-item {
  background: rgba(20,184,166,0.10) !important;
  border-color: rgba(20,184,166,0.22) !important;
}
html body.v6-mode.page-circles .circle-picks .pick-item {
  background: linear-gradient(135deg, rgba(20,184,166,0.12), rgba(8,145,178,0.05)) !important;
  border-color: rgba(20,184,166,0.28) !important;
}
html body.v6-mode.page-circles .circle-picks a.pick-cta {
  background: rgba(20,184,166,0.20) !important;
  border-color: rgba(20,184,166,0.40) !important;
}
html body.v6-mode.page-circles .circle-picks a.pick-cta:hover { background: rgba(20,184,166,0.34) !important; }

/* V6 Shop (shop.php) — chrome only. Product/cosmetic previews (.shop-preview,
   .cosmetic.nc-* samples) and rarity colors (.rarity-rare/.rar-rare) are
   intentional product/rarity identity and are PRESERVED. */
html body.v6-mode .shop-bal {
  background: linear-gradient(135deg, rgba(20,184,166,0.22), rgba(8,145,178,0.22)) !important;
  border-color: rgba(20,184,166,0.42) !important;
}
html body.v6-mode.page-shop .shop-recent-icon,
html body.v6-mode .shop-recent-row-earn_coins .shop-recent-icon,
html body.v6-mode .shop-recent-row-spend .shop-recent-icon { background: rgba(20,184,166,0.22) !important; }

/* V6 Achievements (achievements.php) — chrome only. Rarity tier badges
   (.ach-card-rar.rar-uncommon/rare/epic/legendary) are semantic tier identity
   and are PRESERVED (epic=purple is standard game convention). */
html body.v6-mode.page-achievements .ach-card-unlocked {
  background: linear-gradient(135deg, rgba(20,184,166,0.12), rgba(251,191,36,0.04) 70%) !important;
}
html body.v6-mode.page-achievements .ach-card-progress-bar {
  background: linear-gradient(90deg, #14b8a6, #22c55e) !important;
}
/* Inline title-management chrome (active-title icon/badge, set/remove buttons) */
html body.v6-mode.page-achievements [style*="color:#7c3aed"] { color: #2dd4bf !important; }
html body.v6-mode.page-achievements [style*="background:#7c3aed"] { background: #14b8a6 !important; }
html body.v6-mode.page-achievements [style*="#5a3aa3"] { color: #2dd4bf !important; border-color: rgba(20,184,166,0.55) !important; }

/* ============================================================
   V6 purge — Library / Saved view (saved.php + discover library
   view + subpage). Chrome purple → teal. Semantic KEEP: none here
   (all flagged colors were chrome). Source rules live in
   discover.php inline <style> (.lib-seg-tab, .lib-seg-count,
   .saved-reminder-*). Overridden externally so no discover.php edit
   → no match-safety needed.
   ============================================================ */
html body.v6-mode .lib-seg-tab:hover,
html body.v6-mode .lib-seg-tab:focus-visible {
  border-color: rgba(20,184,166,0.4) !important;
  background: rgba(20,184,166,0.14) !important;
}
html body.v6-mode .lib-seg-tab.is-active {
  border-color: rgba(45,212,191,0.5) !important;
  background: linear-gradient(135deg, rgba(20,184,166,0.34), rgba(8,145,178,0.16)) !important;
  box-shadow: 0 0 0 1px rgba(45,212,191,0.24) inset, 0 14px 30px -26px rgba(20,184,166,0.84) !important;
}
html body.v6-mode .lib-seg-tab i { color: #2dd4bf !important; }
html body.v6-mode .lib-seg-tab.is-active i { color: #9fe6c0 !important; }
html body.v6-mode .lib-seg-count { color: #9fe6c0 !important; }
html body.v6-mode .saved-reminder-count {
  background: rgba(20,184,166,0.2) !important;
  color: #d7ffe9 !important;
  border-color: rgba(45,212,191,0.26) !important;
}
html body.v6-mode .saved-reminder-open,
html body.v6-mode .wrapper a.saved-reminder-open {
  background: rgba(20,184,166,0.14) !important;
  border-color: rgba(45,212,191,0.24) !important;
}

/* ============================================================
   V6 purge — Taste Passport (passport.php) + shared .tu-hero
   (tasteuniverse.php, trust-zone → external override only, no PHP
   edit). Chrome purple → teal. Hardcoded rgba purples only; var(--purple)
   fallbacks are already remapped by the global V6 --purple rule.
   ============================================================ */
html body.v6-mode .tu-hero {
  background: linear-gradient(135deg, rgba(20,184,166,.16), rgba(34,211,238,.08) 54%, rgba(249,115,22,.10)) !important;
}
html body.v6-mode .tu-card.passport-pulse-card {
  background: linear-gradient(135deg, rgba(14,165,233,.12), rgba(20,184,166,.12)) !important;
  border-color: rgba(20,184,166,.28) !important;
}
html body.v6-mode .passport-pulse-stat { border-color: rgba(45,212,191,.2) !important; }
html body.v6-mode .passport-pulse-next a { border-color: rgba(45,212,191,.26) !important; }
html body.v6-mode .tu-card.passport-ai-card {
  background: linear-gradient(135deg, rgba(20,184,166,.18), rgba(8,145,178,.10) 56%, rgba(249,115,22,.08)) !important;
}
html body.v6-mode .passport-ai-use.is-active,
html body.v6-mode .wrapper a.passport-ai-use.is-active {
  background: linear-gradient(135deg, #14b8a6, #0891b2) !important;
}

/* ============================================================
   V6 purge — Profile primary action button (other-user profiles).
   The V6 button rule sets border+text neon-green (ghost style) but
   the v5 rule at css/v5-override.css:33025 (spec 1,4,2) keeps a
   hardcoded #8b5cf6→#4f46e5 gradient background. Beat it with a
   page-scoped rule (spec 1,5,3) so the primary CTA matches the V6
   ghost-button treatment (neon-green outline on dark). profile.php
   is trust-zone → external override only, no PHP edit.
   ============================================================ */
html body.v6-mode.page-profile #main .profile-hero button.profile-action.profile-action-primary,
html body.v6-mode.page-profile #main .profile-hero .profile-action.profile-action-primary {
  background: var(--new-bg) !important;
  background-image: none !important;
}

/* ============================================================
   V6 purge — Compare-detail hero avatars. .cd-avatar img
   (css/v5-override.css:10541) has a hardcoded 2px rgba(124,58,237,.4)
   ring → retint teal. compare-detail.php is trust-zone → external
   override only, no PHP edit.
   ============================================================ */
html body.v6-mode .cd-avatar img {
  border-color: rgba(20,184,166,0.45) !important;
}

/* ============================================================
   V6 purge — Creators directory (creators.php). Inline #a78bfa /
   rgba(139,92,246) chrome → teal. Gradient-text <em> in the H1 is
   overridden via background-image only (NOT the background shorthand)
   to preserve -webkit-background-clip:text. creators.php is not
   trust-zone; external override for consistency.
   ============================================================ */
html body.v6-mode.page-creators .creator-card-handle,
html body.v6-mode.page-creators .creator-card-score,
html body.v6-mode.page-creators .ci-empty a { color: #2dd4bf !important; }
html body.v6-mode.page-creators .cta-block code {
  background: rgba(20,184,166,0.12) !important;
  color: #2dd4bf !important;
}
html body.v6-mode.page-creators h1 em[style*="a78bfa"] {
  background-image: linear-gradient(135deg, #2dd4bf, #f97316) !important;
}

/* ============================================================
   V6 DENSITY PASS — audit34 items 23/24/25
   (excessive borders/nesting · old+new mixed · too much room/repetitive)
   Display-only, scoped html body.v6-mode. Mobile/app-first is primary.
   ============================================================ */

/* --- Item 25/23: Account + settings menu (acct-quicklinks) ---------
   The v5 "extra" items were collapsed under a "More" dropdown; V6's
   giant-button rule force-shows all 14 links full-width stacked (~794px
   of vertical scroll — the literal "takes up too much room and
   repetitive" complaint). Re-flow into a compact 2-col grid (~365px),
   drop the now-redundant More dropdown, and let long labels sit tidy. */
html body.v6-mode.page-profile #main nav.acct-quicklinks,
html body.v6-mode.page-editinfo #main nav.acct-quicklinks,
html body.v6-mode.page-answers #main nav.acct-quicklinks,
html body.v6-mode.page-notify-prefs #main nav.acct-quicklinks,
html body.v6-mode.page-reset-password #main nav.acct-quicklinks {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0.5rem !important;
  align-items: stretch !important;
}
@media (min-width: 760px) {
  html body.v6-mode.page-profile #main nav.acct-quicklinks,
  html body.v6-mode.page-editinfo #main nav.acct-quicklinks,
  html body.v6-mode.page-answers #main nav.acct-quicklinks,
  html body.v6-mode.page-notify-prefs #main nav.acct-quicklinks,
  html body.v6-mode.page-reset-password #main nav.acct-quicklinks {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}
@media (min-width: 1080px) {
  html body.v6-mode.page-profile #main nav.acct-quicklinks,
  html body.v6-mode.page-editinfo #main nav.acct-quicklinks,
  html body.v6-mode.page-answers #main nav.acct-quicklinks,
  html body.v6-mode.page-notify-prefs #main nav.acct-quicklinks,
  html body.v6-mode.page-reset-password #main nav.acct-quicklinks {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}
html body.v6-mode.page-profile #main nav.acct-quicklinks .acct-quicklink,
html body.v6-mode.page-editinfo #main nav.acct-quicklinks .acct-quicklink,
html body.v6-mode.page-answers #main nav.acct-quicklinks .acct-quicklink,
html body.v6-mode.page-notify-prefs #main nav.acct-quicklinks .acct-quicklink,
html body.v6-mode.page-reset-password #main nav.acct-quicklinks .acct-quicklink {
  width: auto !important;
  min-width: 0 !important;
  justify-content: flex-start !important;
  text-align: left !important;
  padding: 0.6rem 0.7rem !important;
  font-size: 0.76rem !important;
  overflow: hidden !important;
}
/* keep the collapsed "extra" links visible (they're now grid cells) and
   retire the redundant More dropdown on these pages */
html body.v6-mode.page-profile #main nav.acct-quicklinks .acct-quicklink.acct-quicklink-extra,
html body.v6-mode.page-editinfo #main nav.acct-quicklinks .acct-quicklink.acct-quicklink-extra,
html body.v6-mode.page-answers #main nav.acct-quicklinks .acct-quicklink.acct-quicklink-extra,
html body.v6-mode.page-notify-prefs #main nav.acct-quicklinks .acct-quicklink.acct-quicklink-extra,
html body.v6-mode.page-reset-password #main nav.acct-quicklinks .acct-quicklink.acct-quicklink-extra {
  display: inline-flex !important;
}
html body.v6-mode.page-profile #main nav.acct-quicklinks .acct-quickmore,
html body.v6-mode.page-editinfo #main nav.acct-quicklinks .acct-quickmore,
html body.v6-mode.page-answers #main nav.acct-quicklinks .acct-quickmore,
html body.v6-mode.page-notify-prefs #main nav.acct-quicklinks .acct-quickmore,
html body.v6-mode.page-reset-password #main nav.acct-quicklinks .acct-quickmore {
  display: none !important;
}

/* --- Item 23/25: empty page-title bars on mobile ------------------
   v5-override.css @media(max-width:1024px) hides the discover-bar title
   via `body:has(.weird-tabbar) .discover-wrap > .discover-bar
   .discover-bar-title{display:none}`. In V6 the .weird-tabbar element
   still exists (just display:none, replaced by .v6-app-tab), so :has()
   still matches and every secondary page renders an EMPTY bordered
   title bar on mobile. Restore the real section title (e.g. "Profile",
   "Notifications") so the bar carries content instead of dead space.
   Scoped :not(.page-discover) so the stream's own hero is untouched. */
html body.v6-mode:not(.page-discover) #main .discover-wrap > .discover-bar .discover-bar-title {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  overflow: visible !important;
}

/* --- Item 23: flatten the redundant outer page box -----------------
   Connect + every category subpage wrap their filter deck AND their
   result cards inside a bordered `.subpage-browse-section` /
   `.connect-section`. Each inner card (filter deck, tiles, item cards)
   already carries its own border, so the outer section border produces
   the "super nested" double/triple box look. Drop the outer chrome and
   let the container padding handle insets — cards keep their own
   borders. Removes one whole nesting level across all these pages. */
html body.v6-mode #main section.discover-section.subpage-browse-section,
html body.v6-mode #main section.discover-section.connect-section,
html body.v6-mode #main section.subpage-browse-section,
html body.v6-mode #main section.connect-section {
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-top: 0 !important;
}

/* De-double the People/Circles segmented control on Connect: the outer
   nav already rings two self-bordered mode cards. Strip the outer ring
   so it reads as two tabs, not a box-in-a-box. */
html body.v6-mode #main nav.connect-modetabs {
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* ============================================================
   V6 primary nav polish (display-only). Unifies the active tab to the
   on-brand neon-green used by the mobile tabbar + the "ALL" active filter
   pill (was a stark white slab), gives inactive links a subtle segmented-
   pill surface so the row reads as one control, and adds a tinted neon
   hover. Appended late to win the cascade; `:not(#zz)` bumps specificity to
   beat the earlier <button> reset + active-icon rules. Mobile bottom tabbar
   (.v6-app-tab) is already on-brand and intentionally left untouched. */
html body.v6-mode .nav-bar .nav-link {
  transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease !important;
}
html body.v6-mode .nav-bar .nav-link:not(.active) {
  background: rgba(255,255,255,0.045) !important;
  border-color: rgba(255,255,255,0.09) !important;
}
html body.v6-mode .nav-bar button.nav-link:not(.active):not(#zz) {
  background: rgba(255,255,255,0.045) !important;
  border-color: rgba(255,255,255,0.09) !important;
}
html body.v6-mode .nav-bar .nav-link:not(.active):hover,
html body.v6-mode .nav-bar button.nav-link:not(.active):not(#zz):hover {
  background: rgba(var(--ng-rgb),0.12) !important;
  border-color: rgba(var(--ng-rgb),0.55) !important;
  color: var(--text) !important;
}
html body.v6-mode .nav-bar .nav-link.active,
html body.v6-mode .nav-bar button.nav-link.active:not(#zz) {
  background: var(--neon-green) !important;
  color: #000 !important;
  border-color: var(--neon-green) !important;
  box-shadow: 0 6px 20px -12px rgba(var(--ng-rgb),0.85) !important;
}
html body.v6-mode .nav-bar .nav-link.active:not(#zz) .nav-link-icon,
html body.v6-mode .nav-bar .nav-link.active:not(#zz) .nav-link-caret {
  color: #000 !important;
}
html.light-mode body.v6-mode .nav-bar .nav-link.active,
html.light-mode body.v6-mode .nav-bar button.nav-link.active:not(#zz) {
  background: var(--neon-green) !important;
  color: #000 !important;
  border-color: var(--neon-green) !important;
}

/* ============================================================================
   V6 is dark-only — remove the light-mode capability.
   The stored light-mode class is never applied in V6 (gated server-side in
   header.php / header2.php / index.php) and toggleTheme() is a no-op in V6, so
   hide every theme-toggle surface that could otherwise render inside body.v6-mode
   (the avatar-menu "Switch to Light Mode" row, plus any legacy toggle buttons).
   Scoped to body.v6-mode only — non-V6 (legacy) light mode is untouched.
   ============================================================================ */
html body.v6-mode .weird-avatar-theme,
html body.v6-mode [data-theme-toggle],
html body.v6-mode .theme-toggle,
html body.v6-mode .theme-toggle-mobile {
  display: none !important;
}

/* ============================================================================
   V6 mobile density pass (admin preview only)  — checkpoint 029
   Mobile-app-first: use the phone's horizontal space instead of stranding
   browse content in a single tall column.
   - Connect people tiles: 2-across on phones (was 1 person per screen because
     the shared browse-grid rule floors columns at minmax(230px)). Explore MEDIA
     item cards intentionally stay 1-across (they match the Stream big-card
     format) — this only affects the people grid.
   - Category hero: keep the 3 stat chips on ONE row on phones instead of
     stacking them vertically, so the hero stops eating a whole screen before
     the first result. Does NOT touch the item cards.
   ============================================================================ */
@media (max-width: 560px) {
  html body.v6-mode #main .connect-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }
  html body.v6-mode #main .connect-grid .connect-tile {
    padding: 14px 10px 12px !important;
  }
  html body.v6-mode #main .connect-grid .connect-tile-avatar {
    width: 96px !important;
    height: 96px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  html body.v6-mode #main .connect-grid .connect-tile-avatar .weird-av,
  html body.v6-mode #main .connect-grid .connect-tile-avatar img {
    width: 100% !important;
    height: 100% !important;
  }
  html body.v6-mode #main .connect-grid .connect-tile-name {
    font-size: 0.98rem !important;
  }
  html body.v6-mode #main .connect-grid .connect-tile-match-detail {
    font-size: 0.72rem !important;
  }
}
@media (max-width: 360px) {
  html body.v6-mode #main .connect-grid {
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 640px) {
  html body.v6-mode #main .category-hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0.4rem !important;
  }
  html body.v6-mode #main .category-hero-stat {
    padding: 0.6rem 0.5rem !important;
  }
  html body.v6-mode #main .category-hero-stat .category-hero-stat-num,
  html body.v6-mode #main .category-hero-stat b {
    font-size: 1.15rem !important;
  }
}

/* ============================================================================
   V6 account/section nav → dropdown on mobile  — checkpoint 029
   _account_nav.php renders BOTH a chip grid (.acct-quicklinks) AND a native
   "Jump to section" <select> (.acct-nav-select-wrap). Earlier passes (item 25
   grid + the ≤640 grid rule at ~line 702) forced the chip grid VISIBLE on
   phones, so mobile users saw ~14 stacked buttons AND the dropdown — scrolling
   a whole screen before any page content.
   Mobile-app-first: hide the chip grid on phones and keep only the dropdown
   (native picker, reliable on iOS/Android, already themed neon-green in V6).
   Desktop keeps the chip hub. The :not(#zzz) bump lifts specificity above the
   page-scoped item-25 grid rule (1,3,3) so this also wins on
   profile/editinfo/answers/notify-prefs/reset-password. Only .acct-quicklinks
   is affected — the other button groups in the ≤640 rule are untouched.
   ============================================================================ */
@media (max-width: 720px) {
  html body.v6-mode:not(.page-discover) #main nav.acct-quicklinks:not(#zzz) {
    display: none !important;
  }
}

/* ============================================================================
   V6 DE-NEST CARD WRAPPERS — flatten the "box around the cards" (checkpoint 030)
   ----------------------------------------------------------------------------
   Standing task: "optimize V6 for the mobile app first" + user: "get rid of any
   nesting, use the stream as an example as the cards dont fit inside any other
   border/div and look much better. rest of pages have many borders outside the
   cards which look blah."

   On the Stream (page-discover) the card stream sits DIRECTLY on the page: each
   .discover-card keeps its own 2px border, but every ancestor wrapper
   (.discover-wrap.feed, .discover-section, .discover-stream) is transparent —
   see the page-discover overrides at ~line 1934. Elsewhere the two big
   card-chrome :where() rules (~line 418 inner wrappers, ~line 3772 .discover-wrap
   + leaf cards) paint the SAME 2px border + --card-bg on the WRAPPERS too, so on
   browse/account pages the cards end up inside a redundant bordered box = the
   "blah" nesting the user called out.

   Fix: replicate the Stream's flat pattern on every NON-discover page. Flatten
   the OUTER content wrap and the card-grid SECTION wrappers (transparent bg, no
   border/shadow) while leaving each individual card's own border intact.

   SAFETY: .discover-wrap is ALSO the sole content panel on pure form/text pages
   (login, register, reset-password, unsubscribe, notify-confirm, editinfo, etc.)
   where the box IS wanted. So the outer flatten is guarded by :has() keyed on
   card/section classes — a wrap only flattens when it actually CONTAINS a card
   grid. Verified live: a plain form wrap stays bordered; a wrap with a
   .discover-card flattens. Header/nav/control panels (.discover-bar page nav,
   .subpage-control-deck filter deck, .category-hero / .search-summary summary
   headers, the taste-map constellation stage) are intentionally LEFT alone —
   they are distinct functional cards, not "a border around the cards" (the
   Stream itself keeps its bordered TODAY header card above the flat stream).

   Scoped :not(.page-discover) so the Stream is untouched. Outer wrap keeps a
   ~10-14px horizontal gutter (matches the Stream's 12px inset so cards don't
   touch the screen edge); inner section wrappers drop L/R padding to 0 (the
   outer wrap already provides the gutter — avoids a double indent).
   Display-only external CSS, ZERO trust-zone PHP → no _match_safety.sh required.
   ============================================================================ */
html body.v6-mode:not(.page-discover) #main .discover-wrap:has(.discover-card, .discover-card-item, .connect-tile, .shop-card, .acct-card, .ach-section, .tm-person, .tm-panel, .notif-row, .discover-section, .faq-section) {
  background: transparent !important;
  background-image: none !important;
  border: none !important;
  box-shadow: none !important;
  padding-left: clamp(10px, 3vw, 14px) !important;
  padding-right: clamp(10px, 3vw, 14px) !important;
}
html body.v6-mode:not(.page-discover) #main .discover-section:has(.discover-card, .discover-card-item),
html body.v6-mode:not(.page-discover) #main .search-group:has(.search-card),
html body.v6-mode:not(.page-discover) #main .shop-cat:has(.shop-card),
html body.v6-mode:not(.page-discover) #main .shop-section:has(.shop-card, .shop-cat),
html body.v6-mode:not(.page-discover) #main .tm-bottom:has(.tm-panel, .tm-person),
html body.v6-mode:not(.page-discover) #main .tm-panel:has(.tm-person) {
  background: transparent !important;
  background-image: none !important;
  border: none !important;
  box-shadow: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* ============================================================
   V6 — EXPLORE CATEGORY PAGE CARDS MATCH THE STREAM MEDIA CARDS
   subpage.php renders category pages (movies/tv/music/books/
   videogames/podcasts/local/travel) as
   .category-card-stream > .discover-card-item. The Stream feed
   media card (.discover-card.media) is the reference look:
   full-bleed 4/3 poster, category pill top-left, rating pill
   top-right (slightly larger), compact title share icon, brutalist
   border. Display-only; no trust-zone PHP.
   ============================================================ */

/* (1) FULL-BLEED POSTER. The .meme-zoom-trigger <button> was picking
   up generic button padding (10.88/15.2px) + a 2px border, so its
   content-box shrank to ~310px inside the 345px media frame and the
   image was letterboxed (black frame / "vignette"). Force the button
   flush and let the image fill edge-to-edge. Match the Stream's 4/3
   (1.339) poster aspect — slightly taller than the old 16/11. */
html body.v6-mode #main .category-card-stream .discover-card-media {
  aspect-ratio: 4 / 3 !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
}
html body.v6-mode #main .category-card-stream .discover-card-media .meme-zoom-trigger,
html body.v6-mode #main .category-card-stream .discover-card-media .discover-card-shop-link {
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #000 !important;
  overflow: hidden !important;
}
html body.v6-mode #main .category-card-stream .discover-card-media .meme-zoom-trigger img,
html body.v6-mode #main .category-card-stream .discover-card-media .discover-card-shop-link img,
html body.v6-mode #main .category-card-stream .discover-card-media > img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  border-radius: 0 !important;
}

/* (2) CATEGORY PILL TOP-LEFT over the poster. The Stream media pill
   (.v6-cat-pill-link) is a SOLID category-accent chip with DARK text and
   NO icon (e.g. Movies = cyan). The category page previously showed a dark
   translucent chip WITH a film icon + grey border — the main remaining
   visual gap vs the Stream. Map the per-card data-cat to the accent and
   paint the pill exactly like the Stream. */
html body.v6-mode #main .category-card-stream .discover-card-item[data-cat="movies"] { --cc: var(--cat-movies); }
html body.v6-mode #main .category-card-stream .discover-card-item[data-cat="tv"] { --cc: var(--cat-tv); }
html body.v6-mode #main .category-card-stream .discover-card-item[data-cat="music"] { --cc: var(--cat-music); }
html body.v6-mode #main .category-card-stream .discover-card-item[data-cat="books"] { --cc: var(--cat-books); }
html body.v6-mode #main .category-card-stream .discover-card-item[data-cat="podcasts"] { --cc: var(--cat-podcasts); }
html body.v6-mode #main .category-card-stream .discover-card-item[data-cat="videogames"] { --cc: var(--cat-videogames); }
html body.v6-mode #main .category-card-stream .discover-card-item[data-cat="videos"] { --cc: var(--cat-videos); }
html body.v6-mode #main .category-card-stream .discover-card-item[data-cat="facts"] { --cc: var(--cat-facts); }
html body.v6-mode #main .category-card-stream .discover-card-item[data-cat="jokes"] { --cc: var(--cat-jokes); }
html body.v6-mode #main .category-card-stream .discover-card-item[data-cat="lifehacks"] { --cc: var(--cat-lifehacks); }
html body.v6-mode #main .category-card-stream .discover-card-item[data-cat="memes"] { --cc: var(--cat-memes); }
html body.v6-mode #main .category-card-stream .discover-card-item[data-cat="local"] { --cc: var(--cat-local); }
html body.v6-mode #main .category-card-stream .discover-card-item[data-cat="travel"] { --cc: var(--cat-travel); }
html body.v6-mode #main .category-card-stream .discover-card-item[data-cat="place"] { --cc: var(--cat-place); }
html body.v6-mode #main .category-card-stream .discover-card-item[data-cat="shopping"] { --cc: var(--cat-shopping); }
html body.v6-mode #main .category-card-stream .discover-card-item[data-cat="webcontent"] { --cc: var(--cat-webcontent); }
html body.v6-mode #main .category-card-stream .discover-card-item[data-cat="boardgames"] { --cc: var(--cat-boardgames); }
html body.v6-mode #main .category-card-stream .discover-card-item[data-cat="sports"] { --cc: var(--cat-sports); }
html body.v6-mode #main .category-card-stream .discover-card-item .discover-card-tag {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.3em !important;
  position: absolute !important;
  top: 12px !important;
  left: 12px !important;
  right: auto !important;
  z-index: 4 !important;
  max-width: calc(100% - 110px) !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  padding: 0.34rem 0.7rem !important;
  font-size: 0.72rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  background: var(--cc, var(--new-green)) !important;
  background-image: none !important;
  color: #050505 !important;
  -webkit-text-fill-color: #050505 !important;
  border: 0 !important;
  border-radius: 999px !important;
  box-shadow: none !important;
}
/* Stream pill has no icon — hide the leading category glyph. */
html body.v6-mode #main .category-card-stream .discover-card-item .discover-card-tag > i,
html body.v6-mode #main .category-card-stream .discover-card-item .discover-card-tag svg {
  display: none !important;
}

/* (3) RATING PILL TOP-RIGHT matches the Stream .v6-card-pct: WHITE text on
   a dark translucent chip with a hairline white border + 12px radius (was a
   green pill with a 999px grey-bordered chip). ~14px type. */
html body.v6-mode #main .category-card-stream .discover-card-pct {
  top: 12px !important;
  right: 12px !important;
  left: auto !important;
  min-height: 0 !important;
  height: auto !important;
  padding: 0.34rem 0.7rem !important;
  font-size: 0.9rem !important;
  line-height: 1 !important;
  background: rgba(0, 0, 0, 0.72) !important;
  border: 2px solid rgba(255, 255, 255, 0.24) !important;
  border-radius: 12px !important;
  color: #fff !important;
}
html body.v6-mode #main .category-card-stream .discover-card-pct,
html body.v6-mode #main .category-card-stream .discover-card-pct * {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

/* (4) TITLE-ROW SHARE ICON is a COMPACT square. It was grouped with the
   full-width action buttons (rate/skip/save), so the title's
   external-link <a> painted as a full-width black bar under the title.
   Lay the title out as a row (text flexes, icon stays a small square
   top-right) — like the Stream card's title share icon. */
html body.v6-mode #main .category-card-stream .discover-card-title {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 0.5rem !important;
}
html body.v6-mode #main .category-card-stream .discover-card-title .discover-card-detail-title,
html body.v6-mode #main .category-card-stream .discover-card-title .discover-card-shop-title {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}
html body.v6-mode #main .category-card-stream .discover-card-title .discover-card-detail-icon {
  flex: 0 0 auto !important;
  width: 34px !important;
  min-width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 !important;
  border: 2px solid var(--new-line) !important;
  border-radius: var(--new-radius-sm) !important;
  background: #000 !important;
  color: var(--new-text) !important;
  font-size: 0.82rem !important;
}

/* (5) ACTION ROW matches the Stream's clean button row. The category card
   packed all 7 controls into a 4-col grid that wrapped to a lopsided 4+3.
   The Stream lays the 5 rate/save actions in ONE row, then the tool buttons
   (message + more) below. Use 5 columns so row 1 = up/neutral/down/skip/save
   and the two .discover-card-more tools flow to row 2, with the final "more"
   (⋯) pushed to the far right across from the prompt — like the Stream. */
html body.v6-mode #main .category-card-stream .discover-card-foot .discover-card-actions {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 0.5rem !important;
  align-items: stretch !important;
}
html body.v6-mode #main .category-card-stream .discover-card-actions .discover-card-message {
  grid-column: 1 !important;
}
html body.v6-mode #main .category-card-stream .discover-card-actions > .discover-card-more:last-child {
  grid-column: 5 !important;
}

/* ============================================================
   V6 — PLAY HUB "GAMES IN PLAY" CARDS ARE TOO NARROW.
   The active-games accordion nests horizontal padding through
   .pvp-coll (acct-card, 16px) > details (13.6px) > .pvp-coll-body
   (13.6px), squeezing .pvp-matchlist / .pvp-match to ~258px inside a
   ~349px panel (~90px lost). Trim the nested inner padding so the
   match cards (flex-stretch in the column) widen toward the panel.
   Scoped by .pvp-* classes so it also covers subpages (?mode=multi).
   Display-only; pvp.php PHP untouched.
   ============================================================ */
html body.v6-mode #main .pvp-coll:not(#zzz) {
  padding-left: 0.5rem !important;
  padding-right: 0.5rem !important;
}
html body.v6-mode #main .pvp-coll > details {
  padding-left: 0 !important;
  padding-right: 0 !important;
}
html body.v6-mode #main .pvp-coll-body {
  padding-left: 0.15rem !important;
  padding-right: 0.15rem !important;
}
/* On phones, reclaim the outer play-experience gutter too so the whole
   Multiplayer section + match/game cards run nearly edge-to-edge (like the
   Stream cards) instead of sitting inside a wide inset. Widens .pvp-match /
   .pvp-gametiles / .pvp-lobby cards ~40px toward the viewport. */
@media (max-width: 720px) {
  html body.v6-mode #main .discover-wrap.play-experience {
    padding-left: 6px !important;
    padding-right: 6px !important;
  }
  html body.v6-mode #main .play-experience .pvp-coll:not(#zzz) {
    padding-left: 0.3rem !important;
    padding-right: 0.3rem !important;
  }
}

/* ============================================================
   V6 — STREAM FILTER NAV: "ALL" ON THE FAR LEFT.
   nav.discover-audience is a horizontal flex rail. The default/active
   "All" pill (discover.php?tab=stream, no &f= / no circle) was emitted
   near the END of the rail (after the filter pills + Circles dropdown),
   so users landed on the stream with "All" buried on the right. Pull it
   to the front with order:-1 — the other pills keep their order and stay
   fully reachable in the scroller. Display-only; discover.php untouched.
   ============================================================ */
html body.v6-mode #main nav.discover-audience a.discover-audience-pill[href*="tab=stream"]:not([href*="f="]):not([href*="circle"]) {
  order: -1 !important;
}

/* ============================================================
   V6 — MESSAGES: TIDY REACTION / REPLY CONTROLS (mobile-app).
   Each bubble's .msg-reactions cluster (reply + add-reaction, plus the
   reaction summary) was rendering as two 34x44 dark slabs floating over
   the bubble's top-right corner (a broad V6 rule forced dark bg and the
   :where() white rule was too weak to win), overlapping the message text
   and clashing on the neon-green "me" bubbles. Rebuild them as compact,
   consistent 28px pill-buttons that hug the corner (dark chip + subtle
   border + light glyph, neon on press) and lift clear of the body text.
   Display-only; messages.php PHP untouched.
   ============================================================ */
html body.v6-mode #main .msg-bubble .msg-reactions {
  top: -14px !important;
  right: 8px !important;
  gap: 5px !important;
  align-items: center !important;
}
html body.v6-mode #main .msg-reactions :where(.msg-react-open, .msg-reply-start) {
  min-width: 30px !important;
  width: 30px !important;
  min-height: 30px !important;
  height: 30px !important;
  max-height: 30px !important;
  padding: 0 !important;
  border-radius: 999px !important;
  background: #050505 !important;
  background-image: none !important;
  border: 1.5px solid var(--new-line, #333) !important;
  color: var(--new-text, #fff) !important;
  -webkit-text-fill-color: currentColor !important;
  opacity: 1 !important;
  font-size: 12px !important;
  line-height: 1 !important;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.55) !important;
  pointer-events: auto !important;
  flex: 0 0 auto !important;
}
html body.v6-mode #main .msg-reactions :where(.msg-react-open:hover, .msg-reply-start:hover, .msg-react-open:focus-visible, .msg-reply-start:focus-visible) {
  background: var(--new-green, #ccff00) !important;
  border-color: var(--new-green, #ccff00) !important;
  color: #050505 !important;
  -webkit-text-fill-color: #050505 !important;
}
/* Existing-reaction summary chips: readable dark pills (not white slabs). */
html body.v6-mode #main .msg-reactions .msg-react-chip {
  background: #050505 !important;
  background-image: none !important;
  border: 1.5px solid var(--new-line, #333) !important;
  color: var(--new-text, #fff) !important;
  -webkit-text-fill-color: currentColor !important;
  min-height: 30px !important;
  height: 30px !important;
  max-height: 30px !important;
  padding: 0 9px !important;
  border-radius: 999px !important;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.55) !important;
}
html body.v6-mode #main .msg-reactions .msg-react-chip.is-active {
  border-color: var(--new-green, #ccff00) !important;
  color: var(--new-green, #ccff00) !important;
  -webkit-text-fill-color: var(--new-green, #ccff00) !important;
}
/* Emoji picker popup: was a stark WHITE pill bar on the dark theme. Make it a
   dark chip bar matching the card system; choices become transparent tiles that
   tint neon on hover/press. */
html body.v6-mode #main .msg-reactions .msg-react-picker {
  background: var(--new-card, #111) !important;
  background-image: none !important;
  border: 1.5px solid var(--new-line, #333) !important;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.6) !important;
}
html body.v6-mode #main .msg-reactions .msg-react-picker .msg-react-choice {
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  color: var(--new-text, #fff) !important;
  -webkit-text-fill-color: currentColor !important;
}
html body.v6-mode #main .msg-reactions .msg-react-picker .msg-react-choice:hover,
html body.v6-mode #main .msg-reactions .msg-react-picker .msg-react-choice:focus-visible,
html body.v6-mode #main .msg-reactions .msg-react-picker .msg-react-choice.is-active {
  background: rgba(var(--ng-rgb), 0.16) !important;
}
/* Keep the same compact dark chip on the neon-green "me" bubbles so the
   controls stay legible instead of dark-on-green slabs. */
html body.v6-mode #main .msg-row-me .msg-reactions :where(.msg-react-open, .msg-reply-start, .msg-react-chip) {
  background: #050505 !important;
  border-color: var(--new-line, #333) !important;
  color: var(--new-text, #fff) !important;
  -webkit-text-fill-color: currentColor !important;
}

/* ============================================================

/* ============================================================

/* ============================================================
   CLASSIC SKIN — "The Horizontal Gallery" (Unique & Different)
   Abandoning vertical scrolling completely. The stream becomes
   a horizontal, swipeable gallery. Cards act like physical
   vinyl records or art exhibition posters.
   ============================================================ */

/* Lock vertical scrolling */
html body.v6-mode.v6-skin-classic,
html body.v6-mode.v6-skin-classic.page-discover {
  --bg: #EAE8E3; /* Warm off-white / parchment base */
  --bg-rgb: 234,232,227;
  --card-bg: #FFFFFF;
  --text: #111111;
  --text-dim: #666666;
  --border-color: #000000;

  /* Accent is a punchy Yves Klein Blue */
  --neon-green: #002FA7;
  --ng-rgb: 0,47,167;
  --new-green: #002FA7;
  --new-text: #111111;
  --new-bg: #EAE8E3;
  --new-line: #000000;

  height: 100dvh !important;
  overflow: hidden !important;
  background-color: var(--bg) !important;
  background-image: none !important;
}

html body.v6-mode.v6-skin-classic.page-discover #main {
  height: 100dvh !important;
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
}

/* Float headers & force them into the new palette */
html body.v6-mode.v6-skin-classic #sticky-header,
html body.v6-mode.v6-skin-classic .weird-tabbar {
  background: var(--bg) !important;
  border-color: #000 !important;
}
html body.v6-mode.v6-skin-classic #sticky-header *,
html body.v6-mode.v6-skin-classic .weird-tabbar * {
  color: #000 !important;
}

/*
   THE HORIZONTAL ENGINE
*/
html body.v6-mode.v6-skin-classic.page-discover #main .discover-stream {
  display: flex !important;
  flex-direction: row !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scroll-snap-type: x mandatory !important;
  scroll-padding-left: 20px !important;
  height: 100dvh !important;
  padding: 100px 20px 120px 20px !important; /* Space for header/nav */
  box-sizing: border-box !important;
  align-items: center !important;
  gap: 24px !important;
}

/* Hide scrollbar */
html body.v6-mode.v6-skin-classic.page-discover #main .discover-stream::-webkit-scrollbar {
  display: none !important;
}

/* The Cards: Physical Posters */
html body.v6-mode.v6-skin-classic.page-discover #main .discover-stream > .card,
html body.v6-mode.v6-skin-classic.page-discover #main .discover-stream > .discover-section {
  flex: 0 0 85vw !important; /* 85% width so you see the next edge */
  height: 65vh !important; /* Fixed height gallery frames */
  scroll-snap-align: center !important;

  background: #FFF !important;
  border: 4px solid #000 !important;
  border-radius: 0 !important;
  box-shadow: 12px 12px 0 #000 !important; /* Hard brutalist drop shadow */

  display: flex !important;
  flex-direction: column !important;
  padding: 24px !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  overflow: hidden !important;
}

/* Force text to black */
html body.v6-mode.v6-skin-classic.page-discover #main .discover-stream > .card *,
html body.v6-mode.v6-skin-classic.page-discover #main .discover-stream > .discover-section * {
  color: #000 !important;
}

/* Typographic emphasis */
html body.v6-mode.v6-skin-classic.page-discover #main .discover-stream > .card h2,
html body.v6-mode.v6-skin-classic.page-discover #main .discover-stream > .card h3 {
  font-family: serif !important;
  font-size: 2rem !important;
  line-height: 1.1 !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  letter-spacing: -1px !important;
  margin-bottom: auto !important; /* Push answers to bottom */
}

/* Answer buttons as bold blocky choices */
html body.v6-mode.v6-skin-classic.page-discover #main .discover-stream > .card.take .take-answers button {
  background: #FFF !important;
  border: 2px solid #000 !important;
  color: #000 !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  border-radius: 0 !important;
  box-shadow: 4px 4px 0 #000 !important;
  margin-bottom: 12px !important;
  transition: transform 0.1s, box-shadow 0.1s !important;
}

html body.v6-mode.v6-skin-classic.page-discover #main .discover-stream > .card.take .take-answers button:active {
  transform: translate(4px, 4px) !important;
  box-shadow: 0 0 0 #000 !important;
}

/* Media cards */
html body.v6-mode.v6-skin-classic.page-discover #main .discover-stream > .card.media {
  padding: 0 !important;
  border: 4px solid #000 !important;
  background: #000 !important;
}

html body.v6-mode.v6-skin-classic.page-discover #main .discover-stream > .card.media .v6-media-poster {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  filter: grayscale(100%) contrast(150%) !important; /* Punk/zine style */
}

html body.v6-mode.v6-skin-classic.page-discover #main .discover-stream > .card.media .v6-media-overlay {
  background: transparent !important;
}

html body.v6-mode.v6-skin-classic.page-discover #main .discover-stream > .card.media h2 {
  color: #FFF !important;
  background: #000 !important;
  padding: 8px 12px !important;
  display: inline-block !important;
  margin-top: auto !important;
}

/* Primary Accents (Yves Klein Blue) */
html body.v6-mode.v6-skin-classic #main :where(
  .acct-quicklink.is-active, .profile-action-primary, .btn.primary, .btn-glow.primary,
  .search-go, .uqc-cta, .pvp-mode-tab.is-active, .pvpgf-pill.is-active, .shop-btn.equipped,
  .weird-notif-filter.btn-glow.is-active, .discover-audience-pill.is-active
) {
  background: #002FA7 !important;
  color: #FFF !important;
  border: 2px solid #000 !important;
  box-shadow: 4px 4px 0 #000 !important;
  border-radius: 0 !important;
  font-weight: 900 !important;
}

/* Active tabbar */
html body.v6-mode.v6-skin-classic .weird-tabbar-item.is-active {
  background: #002FA7 !important;
  color: #FFF !important;
  border-radius: 0 !important;
  border: 2px solid #000 !important;
}
html body.v6-mode.v6-skin-classic .weird-tabbar-item.is-active i { color: #FFF !important; }


/* ============================================================
   CLASSIC SKIN — Horizontal Gallery v2 formatting pass
   Mobile: a controlled horizontal poster deck with no clipped
   chrome. Desktop: four even cards across.
   ============================================================ */

html body.v6-mode.v6-skin-classic.page-discover {
  --gallery-paper: #e9e5dc;
  --gallery-ink: #070707;
  --gallery-blue: #0038c8;
  --gallery-shadow: 8px 8px 0 #070707;
  --gallery-border: 3px solid #070707;
  --gallery-top: 118px;
  --gallery-bottom: 76px;
  background: var(--gallery-paper) !important;
  color: var(--gallery-ink) !important;
  overflow: hidden !important;
}

html body.v6-mode.v6-skin-classic.page-discover #main {
  height: 100dvh !important;
  max-width: none !important;
  overflow: hidden !important;
  padding: 0 !important;
}

html body.v6-mode.v6-skin-classic .nav-bar {
  background: var(--gallery-paper) !important;
  border-bottom: 2px solid var(--gallery-ink) !important;
  box-shadow: none !important;
  color: var(--gallery-ink) !important;
}

html body.v6-mode.v6-skin-classic .nav-bar :where(a, button, i, span),
html body.v6-mode.v6-skin-classic .v6-app-tabbar :where(a, button, i, span) {
  color: var(--gallery-ink) !important;
  -webkit-text-fill-color: currentColor !important;
}

html body.v6-mode.v6-skin-classic .v6-app-tabbar {
  background: var(--gallery-paper) !important;
  border-top: 2px solid var(--gallery-ink) !important;
  box-shadow: none !important;
}

html body.v6-mode.v6-skin-classic .v6-app-tab.is-active,
html body.v6-mode.v6-skin-classic .weird-tabbar-item.is-active {
  background: var(--gallery-blue) !important;
  border: 2px solid var(--gallery-ink) !important;
  border-radius: 0 !important;
  box-shadow: 4px 4px 0 var(--gallery-ink) !important;
  color: #fff !important;
}

html body.v6-mode.v6-skin-classic .v6-app-tab.is-active :where(i, span),
html body.v6-mode.v6-skin-classic .weird-tabbar-item.is-active :where(i, span) {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

html body.v6-mode.v6-skin-classic.page-discover #main .discover-audience {
  background: var(--gallery-paper) !important;
  box-sizing: border-box !important;
  display: flex !important;
  gap: 8px !important;
  height: 42px !important;
  left: 12px !important;
  margin: 0 !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding: 0 0 6px !important;
  position: fixed !important;
  right: 12px !important;
  scrollbar-width: none !important;
  top: 66px !important;
  width: auto !important;
  z-index: 10010 !important;
}

html body.v6-mode.v6-skin-classic.page-discover #main .discover-audience::-webkit-scrollbar {
  display: none !important;
}

html body.v6-mode.v6-skin-classic.page-discover #main .discover-audience-pill,
html body.v6-mode.v6-skin-classic.page-discover .discover-wrap-signal-board .discover-audience-pill,
html body.v6-mode.v6-skin-classic .weird-notif-filter.btn-glow {
  align-items: center !important;
  background: var(--gallery-paper) !important;
  border: 2px solid var(--gallery-ink) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: var(--gallery-ink) !important;
  display: inline-flex !important;
  flex: 0 0 auto !important;
  font-size: 0.78rem !important;
  font-weight: 900 !important;
  height: 36px !important;
  letter-spacing: 0.02em !important;
  line-height: 1 !important;
  padding: 0 14px !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
}

html body.v6-mode.v6-skin-classic.page-discover #main .discover-audience-pill.active,
html body.v6-mode.v6-skin-classic.page-discover .discover-wrap-signal-board .discover-audience-pill.active,
html body.v6-mode.v6-skin-classic .weird-notif-filter.btn-glow.is-active {
  background: var(--gallery-blue) !important;
  border-color: var(--gallery-ink) !important;
  color: #fff !important;
}

/* The gallery deck replaces the old stream heading/sentinel chrome. Keep the
   section wrapper alive because it contains #discover-stream; hide only the
   heading/sentinel layers that would otherwise sit under the fixed deck. */
html body.v6-mode.v6-skin-classic.page-discover #main .discover-wrap-stream > .discover-section,
html body.v6-mode.v6-skin-classic.page-discover #main .discover-wrap-signal-board > .discover-section {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  margin: 0 !important;
  overflow: visible !important;
  padding: 0 !important;
}

html body.v6-mode.v6-skin-classic.page-discover #main .discover-wrap-stream > .discover-section > .discover-section-head,
html body.v6-mode.v6-skin-classic.page-discover #main .discover-wrap-stream > .weird-infscroll,
html body.v6-mode.v6-skin-classic.page-discover #main .discover-wrap-stream > .discover-section > .weird-infscroll,
html body.v6-mode.v6-skin-classic.page-discover #main .discover-wrap-signal-board > .discover-section > .discover-section-head,
html body.v6-mode.v6-skin-classic.page-discover #main .discover-wrap-signal-board > .discover-section > .weird-infscroll,
html body.v6-mode.v6-skin-classic.page-discover #main .discover-wrap-signal-board > .weird-infscroll {
  display: none !important;
}

html body.v6-mode.v6-skin-classic.page-discover #main .discover-stream {
  align-items: stretch !important;
  box-sizing: border-box !important;
  display: flex !important;
  gap: 20px !important;
  height: auto !important;
  inset: var(--gallery-top) 0 var(--gallery-bottom) 0 !important;
  margin: 0 !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding: 12px 20px 24px !important;
  position: fixed !important;
  scroll-padding-inline: 20px !important;
  scroll-snap-type: x mandatory !important;
  scrollbar-width: none !important;
  width: 100vw !important;
}

html body.v6-mode.v6-skin-classic.page-discover #main .discover-stream::-webkit-scrollbar {
  display: none !important;
}

html body.v6-mode.v6-skin-classic.page-discover #main .discover-stream > .card,
html body.v6-mode.v6-skin-classic.page-discover #main .discover-stream > .discover-section {
  background: #fff !important;
  border: var(--gallery-border) !important;
  border-radius: 0 !important;
  box-shadow: var(--gallery-shadow) !important;
  box-sizing: border-box !important;
  color: var(--gallery-ink) !important;
  display: flex !important;
  align-self: stretch !important;
  block-size: calc(100% - 12px) !important;
  flex: 0 0 min(83vw, 380px) !important;
  flex-direction: column !important;
  height: calc(100% - 12px) !important;
  max-height: calc(100% - 12px) !important;
  margin: 0 !important;
  min-height: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  padding: clamp(18px, 5vw, 28px) !important;
  scroll-snap-align: start !important;
  scroll-snap-stop: always !important;
  scrollbar-width: none !important;
  width: auto !important;
}

html body.v6-mode.v6-skin-classic.page-discover #main .discover-stream > .card::-webkit-scrollbar,
html body.v6-mode.v6-skin-classic.page-discover #main .discover-stream > .discover-section::-webkit-scrollbar {
  display: none !important;
}

html body.v6-mode.v6-skin-classic.page-discover #main .discover-stream > .card *,
html body.v6-mode.v6-skin-classic.page-discover #main .discover-stream > .discover-section * {
  color: var(--gallery-ink) !important;
  -webkit-text-fill-color: currentColor !important;
}

html body.v6-mode.v6-skin-classic.page-discover #main .card-top,
html body.v6-mode.v6-skin-classic.page-discover #main .discover-quiz-instream-head {
  align-items: center !important;
  display: flex !important;
  flex: 0 0 auto !important;
  gap: 12px !important;
  justify-content: space-between !important;
  margin: 0 0 22px !important;
  min-height: 38px !important;
}

html body.v6-mode.v6-skin-classic.page-discover #main .discover-stream > .card h2,
html body.v6-mode.v6-skin-classic.page-discover #main .discover-stream > .card h3,
html body.v6-mode.v6-skin-classic.page-discover #main .discover-stream > .card .q-text {
  color: var(--gallery-ink) !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(1.55rem, 9vw, 2.45rem) !important;
  font-weight: 900 !important;
  letter-spacing: -0.06em !important;
  line-height: 0.98 !important;
  margin: 0 0 26px !important;
  text-transform: uppercase !important;
}

html body.v6-mode.v6-skin-classic.page-discover #main .discover-quiz-body {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  min-height: 0 !important;
}

html body.v6-mode.v6-skin-classic.page-discover #main .discover-quiz-options,
html body.v6-mode.v6-skin-classic.page-discover #main .take-answers,
html body.v6-mode.v6-skin-classic.page-discover #main .v6-chip-grid {
  display: grid !important;
  flex: 0 0 auto !important;
  gap: 12px !important;
  margin-top: auto !important;
}

html body.v6-mode.v6-skin-classic.page-discover #main :where(.discover-quiz-opt, .take-answers button, .v6-chip, .btn, .primary-take) {
  align-items: center !important;
  background: #fff !important;
  border: 2px solid var(--gallery-blue) !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
  color: var(--gallery-ink) !important;
  display: flex !important;
  font-size: clamp(0.9rem, 3.7vw, 1.05rem) !important;
  font-weight: 900 !important;
  gap: 10px !important;
  justify-content: flex-start !important;
  line-height: 1.05 !important;
  min-height: 52px !important;
  padding: 12px 14px !important;
  text-align: left !important;
  text-transform: uppercase !important;
  width: 100% !important;
}

html body.v6-mode.v6-skin-classic.page-discover #main :where(.dqo-key, .v6-chip i) {
  align-items: center !important;
  background: #e9edf8 !important;
  border: 1px solid rgba(0, 56, 200, 0.35) !important;
  border-radius: 7px !important;
  color: var(--gallery-blue) !important;
  display: inline-flex !important;
  flex: 0 0 26px !important;
  font-family: Inter, system-ui, sans-serif !important;
  font-size: 0.78rem !important;
  height: 26px !important;
  justify-content: center !important;
  width: 26px !important;
}

html body.v6-mode.v6-skin-classic.page-discover #main :where(.pill, .discover-quiz-instream-reward, .v6-card-meta, .discover-card-meta, .streaming-badge) {
  background: transparent !important;
  border: 1px solid var(--gallery-ink) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: var(--gallery-ink) !important;
  font-size: 0.75rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.03em !important;
  padding: 5px 8px !important;
  text-transform: uppercase !important;
}

html body.v6-mode.v6-skin-classic.page-discover #main .discover-quiz-skip,
html body.v6-mode.v6-skin-classic.page-discover #main .v6-detail-link,
html body.v6-mode.v6-skin-classic.page-discover #main .discover-card-save,
html body.v6-mode.v6-skin-classic.page-discover #main .discover-card-more {
  background: #fff !important;
  border: 2px solid var(--gallery-blue) !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  color: var(--gallery-blue) !important;
  min-height: 44px !important;
}

html body.v6-mode.v6-skin-classic.page-discover #main .v6-today-card {
  justify-content: flex-start !important;
}

html body.v6-mode.v6-skin-classic.page-discover #main .v6-today-stack {
  display: grid !important;
  gap: 12px !important;
  min-height: 0 !important;
}

html body.v6-mode.v6-skin-classic.page-discover #main .v6-today-row,
html body.v6-mode.v6-skin-classic.page-discover #main .v6-today-row summary {
  background: #f7f4ee !important;
  border: 2px solid var(--gallery-ink) !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  color: var(--gallery-ink) !important;
  padding: 12px !important;
}

html body.v6-mode.v6-skin-classic.page-discover #main :where(.v6-progress, .v6-result-bar) {
  background: #d8d2c6 !important;
  border: 1px solid var(--gallery-ink) !important;
  border-radius: 999px !important;
  overflow: hidden !important;
}

html body.v6-mode.v6-skin-classic.page-discover #main :where(.v6-progress, .v6-result-bar) > span {
  background: var(--gallery-blue) !important;
  box-shadow: none !important;
}

html body.v6-mode.v6-skin-classic.page-discover #main .card.media {
  background: #000 !important;
  padding: 0 !important;
  position: relative !important;
}

html body.v6-mode.v6-skin-classic.page-discover #main .card.media .media-flex,
html body.v6-mode.v6-skin-classic.page-discover #main .card.media .v6-poster-stack {
  display: grid !important;
  grid-template-rows: minmax(0, 54%) minmax(0, 46%) !important;
  height: 100% !important;
  min-height: 0 !important;
}

html body.v6-mode.v6-skin-classic.page-discover #main .card.media .v6-media-shell {
  min-height: 0 !important;
  overflow: hidden !important;
  position: relative !important;
}

html body.v6-mode.v6-skin-classic.page-discover #main .card.media .poster,
html body.v6-mode.v6-skin-classic.page-discover #main .card.media .meme-zoom-trigger {
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  height: 100% !important;
  min-height: 0 !important;
  width: 100% !important;
}

html body.v6-mode.v6-skin-classic.page-discover #main .card.media img {
  filter: grayscale(100%) contrast(145%) !important;
  height: 100% !important;
  object-fit: cover !important;
  width: 100% !important;
}

html body.v6-mode.v6-skin-classic.page-discover #main .card.media .v6-media-overlay {
  align-items: flex-start !important;
  background: transparent !important;
  display: flex !important;
  gap: 8px !important;
  inset: 12px 12px auto 12px !important;
  justify-content: space-between !important;
  position: absolute !important;
  z-index: 2 !important;
}

html body.v6-mode.v6-skin-classic.page-discover #main .card.media .v6-card-copy {
  background: #fff !important;
  border-top: var(--gallery-border) !important;
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  padding: 14px !important;
  position: relative !important;
  z-index: 2 !important;
}

html body.v6-mode.v6-skin-classic.page-discover #main .card.media .v6-card-copy .q-text {
  background: transparent !important;
  color: var(--gallery-ink) !important;
  -webkit-text-fill-color: var(--gallery-ink) !important;
  font-size: clamp(1.15rem, 5vw, 1.55rem) !important;
  letter-spacing: -0.04em !important;
  line-height: 1.02 !important;
  margin-bottom: 8px !important;
  padding: 0 !important;
}

html body.v6-mode.v6-skin-classic.page-discover #main .card.media .v6-card-copy,
html body.v6-mode.v6-skin-classic.page-discover #main .card.media .v6-card-copy * {
  color: var(--gallery-ink) !important;
  -webkit-text-fill-color: var(--gallery-ink) !important;
}

html body.v6-mode.v6-skin-classic.page-discover #main .card.media .v6-title-link {
  background: transparent !important;
  color: var(--gallery-ink) !important;
  -webkit-text-fill-color: var(--gallery-ink) !important;
  text-decoration: none !important;
}

html body.v6-mode.v6-skin-classic.page-discover #main .card.media .v6-detail-link {
  margin-left: auto !important;
  max-width: 48px !important;
}

html body.v6-mode.v6-skin-classic.page-discover #main .card.media .btn-row,
html body.v6-mode.v6-skin-classic.page-discover #main .v6-card-footer-tools {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin-top: auto !important;
}

html body.v6-mode.v6-skin-classic.page-discover #main .card.media .btn-row .btn,
html body.v6-mode.v6-skin-classic.page-discover #main .card.media .v6-card-footer-tools .btn {
  flex: 1 1 44px !important;
  justify-content: center !important;
  min-height: 42px !important;
  min-width: 42px !important;
  padding: 8px !important;
}

@media (min-width: 900px) {
  html body.v6-mode.v6-skin-classic.page-discover {
    --gallery-shadow: 10px 10px 0 #070707;
    height: auto !important;
    min-height: 100dvh !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  html body.v6-mode.v6-skin-classic.page-discover #main {
    height: auto !important;
    min-height: 100dvh !important;
    overflow: visible !important;
  }

  html body.v6-mode.v6-skin-classic.page-discover #main .discover-audience {
    left: 50% !important;
    max-width: min(1400px, calc(100vw - 64px)) !important;
    right: auto !important;
    top: 74px !important;
    transform: translateX(-50%) !important;
    width: 100% !important;
  }

  html body.v6-mode.v6-skin-classic.page-discover #main .discover-stream {
    align-items: stretch !important;
    display: grid !important;
    gap: 28px !important;
    grid-auto-flow: row dense !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    height: auto !important;
    inset: auto !important;
    margin: 0 auto !important;
    max-width: 1480px !important;
    overflow: visible !important;
    padding: 96px 32px 110px !important;
    position: relative !important;
    scroll-snap-type: none !important;
    width: 100% !important;
  }

  html body.v6-mode.v6-skin-classic.page-discover #main .discover-stream > .card,
  html body.v6-mode.v6-skin-classic.page-discover #main .discover-stream > .discover-section {
    align-self: stretch !important;
    block-size: 560px !important;
    flex: none !important;
    grid-column: auto !important;
    height: 560px !important;
    max-height: 560px !important;
    min-height: 560px !important;
    min-width: 0 !important;
    padding: 22px !important;
    scroll-snap-align: none !important;
    width: auto !important;
  }

  html body.v6-mode.v6-skin-classic.page-discover #main .discover-stream > .card h2,
  html body.v6-mode.v6-skin-classic.page-discover #main .discover-stream > .card h3,
  html body.v6-mode.v6-skin-classic.page-discover #main .discover-stream > .card .q-text {
    font-size: clamp(1.35rem, 2vw, 2.15rem) !important;
  }

  html body.v6-mode.v6-skin-classic.page-discover #main :where(.discover-quiz-opt, .take-answers button, .v6-chip, .btn, .primary-take) {
    font-size: 0.92rem !important;
    min-height: 46px !important;
    padding: 10px 12px !important;
  }

  html body.v6-mode.v6-skin-classic.page-discover #main .card.media .media-flex,
  html body.v6-mode.v6-skin-classic.page-discover #main .card.media .v6-poster-stack {
    grid-template-rows: minmax(0, 40%) minmax(0, 60%) !important;
  }
}

/* ============================================================
   CLASSIC SKIN — Horizontal Gallery v3 readability + polish QA
   Removes leftover cyan/rainbow accents, fixes black-on-black
   special cards, eliminates card dead-space, and makes the media
   overlay + footer legible. Mobile-first, desktop-safe.
   ============================================================ */

/* 1. Category / type / streaming pills -> single blue accent
      (were leftover cyan #00f0ff via --card-accent). */
html body.v6-mode.v6-skin-classic.page-discover #main .card .pill.take,
html body.v6-mode.v6-skin-classic.page-discover #main .card .pill.match,
html body.v6-mode.v6-skin-classic.page-discover #main .card .pill.media,
html body.v6-mode.v6-skin-classic.page-discover #main .card .pill.tournament,
html body.v6-mode.v6-skin-classic.page-discover #main .card a.pill.v6-cat-pill-link,
html body.v6-mode.v6-skin-classic.page-discover #main .card .streaming-badge {
  background: var(--gallery-blue) !important;
  border: 2px solid var(--gallery-ink) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

/* 2. Primary CTAs solid blue (kill cyan border on "answer quiz" etc.). */
html body.v6-mode.v6-skin-classic.page-discover #main .card .btn.primary-media,
html body.v6-mode.v6-skin-classic.page-discover #main .card .btn.primary,
html body.v6-mode.v6-skin-classic.page-discover #main .card .primary-take,
html body.v6-mode.v6-skin-classic.page-discover #main .card .primary-media {
  background: var(--gallery-blue) !important;
  border: 2px solid var(--gallery-ink) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
html body.v6-mode.v6-skin-classic.page-discover #main .card .btn.primary-media *,
html body.v6-mode.v6-skin-classic.page-discover #main .card .primary-take *,
html body.v6-mode.v6-skin-classic.page-discover #main .card .primary-media * {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

/* 3. Neutralize the rainbow gradient accent bar on quiz cards. */
html body.v6-mode.v6-skin-classic.page-discover #main .discover-quiz-card::before,
html body.v6-mode.v6-skin-classic.page-discover #main .discover-quiz-card.discover-quiz-card-ongoing::before {
  background: var(--gallery-blue) !important;
  background-image: none !important;
}

/* 4. Media poster overlay: match % + category legible on grayscale poster. */
html body.v6-mode.v6-skin-classic.page-discover #main .card.media .v6-media-overlay .v6-card-pct,
html body.v6-mode.v6-skin-classic.page-discover #main .card.media .v6-card-pct {
  background: rgba(7, 7, 7, 0.82) !important;
  border: 2px solid #fff !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
html body.v6-mode.v6-skin-classic.page-discover #main .card.media .v6-media-overlay .pill,
html body.v6-mode.v6-skin-classic.page-discover #main .card.media .v6-media-overlay a.pill.v6-cat-pill-link {
  border-color: #fff !important;
}

/* 5. Plain media card: poster fills, footer tools -> clean white bottom bar
      (no more floating "why this?/..." on black dead-space). */
html body.v6-mode.v6-skin-classic.page-discover #main .card.media .media-flex,
html body.v6-mode.v6-skin-classic.page-discover #main .card.media .v6-poster-stack {
  flex: 1 1 auto !important;
  height: auto !important;
}
html body.v6-mode.v6-skin-classic.page-discover #main .card.media .v6-card-footer-tools {
  background: #fff !important;
  border-top: var(--gallery-border) !important;
  flex: 0 0 auto !important;
  margin-top: 0 !important;
  padding: 10px 14px !important;
}
html body.v6-mode.v6-skin-classic.page-discover #main .card.media .v6-card-footer-tools,
html body.v6-mode.v6-skin-classic.page-discover #main .card.media .v6-card-footer-tools * {
  color: var(--gallery-ink) !important;
  -webkit-text-fill-color: var(--gallery-ink) !important;
}

/* 6. "Media" cards that are really text/CTA cards (compatibility quiz,
      tonight picks) must be light & readable, not black-on-black. */
html body.v6-mode.v6-skin-classic.page-discover #main .card.media.v6-compat-card,
html body.v6-mode.v6-skin-classic.page-discover #main .card.media.v6-tonight-card {
  background: #fff !important;
  justify-content: safe center !important;
  padding: clamp(18px, 5vw, 28px) !important;
}
html body.v6-mode.v6-skin-classic.page-discover #main .card.media.v6-special-card:has(> h2.q-text) {
  background: #fff !important;
  justify-content: safe center !important;
  padding: clamp(18px, 5vw, 28px) !important;
}
html body.v6-mode.v6-skin-classic.page-discover #main .card.media.v6-compat-card h2,
html body.v6-mode.v6-skin-classic.page-discover #main .card.media.v6-tonight-card h2,
html body.v6-mode.v6-skin-classic.page-discover #main .card.media.v6-special-card:has(> h2.q-text) > h2,
html body.v6-mode.v6-skin-classic.page-discover #main .card.media.v6-compat-card .q-text,
html body.v6-mode.v6-skin-classic.page-discover #main .card.media.v6-tonight-card .q-text {
  background: transparent !important;
  color: var(--gallery-ink) !important;
  -webkit-text-fill-color: var(--gallery-ink) !important;
  display: block !important;
  margin: 0 0 16px !important;
  padding: 0 !important;
}

/* 7. Remove dead-space in short cards by centering their content block.
      Use "safe center" so tall content aligns to the top instead of
      clipping symmetrically off both card edges. */
html body.v6-mode.v6-skin-classic.page-discover #main .v6-today-card,
html body.v6-mode.v6-skin-classic.page-discover #main .v6-social-rec-card {
  justify-content: safe center !important;
}

/* 4b. Match % badge text (incl. child spans) must be white on the dark chip. */
html body.v6-mode.v6-skin-classic.page-discover #main .card.media .v6-card-pct,
html body.v6-mode.v6-skin-classic.page-discover #main .card.media .v6-card-pct * {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

/* 5b. Footer tools bar spans the full card width (no black gap on the right). */
html body.v6-mode.v6-skin-classic.page-discover #main .card.media .v6-card-footer-tools {
  align-self: stretch !important;
  width: 100% !important;
}

/* v3.2 — Desktop media card: keep action buttons on one row so the copy
   area (title, genre, streaming, actions) fits inside the taller card
   without clipping PARAMOUNT+ / the action row. */
@media (min-width: 900px) {
  html body.v6-mode.v6-skin-classic.page-discover #main .card.media .btn-row {
    flex-wrap: nowrap !important;
  }
  html body.v6-mode.v6-skin-classic.page-discover #main .card.media .btn-row .btn {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    padding-left: 4px !important;
    padding-right: 4px !important;
  }
}

/* v3.3 — Desktop media card: reclaim vertical space so the copy no longer
   clips. Tighten the poster/copy grid gap and the copy padding. */
@media (min-width: 900px) {
  html body.v6-mode.v6-skin-classic.page-discover #main .card.media .media-flex,
  html body.v6-mode.v6-skin-classic.page-discover #main .card.media .v6-poster-stack {
    row-gap: 8px !important;
    gap: 8px !important;
  }
  html body.v6-mode.v6-skin-classic.page-discover #main .card.media .v6-card-copy {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }
}

/* v3.4 — Media card description: clamp to a tidy 2 lines with ellipsis so it
   reads as intentional rather than being hard-cut mid-word by the copy box. */
html body.v6-mode.v6-skin-classic.page-discover #main .card.media .v6-card-copy > p {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  margin: 0 0 4px !important;
}

/* v3.5 — Social recommendation item: let the title column flex to fill the
   row so text wraps at word boundaries instead of breaking "VeggieTales"
   mid-word in the narrow gallery card. */
html body.v6-mode.v6-skin-classic.page-discover #main .v6-social-rec-item {
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  gap: 10px !important;
  align-items: center !important;
}
html body.v6-mode.v6-skin-classic.page-discover #main .v6-social-rec-item-copy {
  min-width: 0 !important;
  overflow-wrap: break-word !important;
  word-break: normal !important;
}

/* v3.6 — Social recommendation thumbnail: trim to 56px so the title column
   gets ~16px more width and "VeggieTales in the House" wraps tidily by word
   (menu button stays 44px to preserve the tap target). */
html body.v6-mode.v6-skin-classic.page-discover #main .v6-social-rec-thumb {
  width: 56px !important;
  height: 56px !important;
  min-width: 56px !important;
  max-width: 56px !important;
  flex: 0 0 56px !important;
}
html body.v6-mode.v6-skin-classic.page-discover #main .v6-social-rec-item-copy {
  font-size: 0.92rem !important;
  line-height: 1.25 !important;
}

/* ============================================================
   CLASSIC SKIN — Smooth V5 Gallery
   Keeps the current gallery functionality (mobile snap deck,
   desktop four-card grid) but swaps the harsh poster-board
   treatment for the smoother V5 navy/purple surface language.
   ============================================================ */

html body.v6-mode.v6-skin-classic,
html body.v6-mode.v6-skin-classic.page-discover {
  --bg: #0c0a14;
  --bg-rgb: 12, 10, 20;
  --card-bg: rgba(26, 21, 48, 0.94);
  --text: #eeeaf6;
  --text-dim: #b0a8c4;
  --border-color: rgba(167, 139, 250, 0.22);
  --neon-green: #8b5cf6;
  --neon-blue: #22d3ee;
  --ng-rgb: 139, 92, 246;
  --new-bg: #0c0a14;
  --new-card: rgba(26, 21, 48, 0.94);
  --new-card-2: rgba(34, 29, 58, 0.94);
  --new-card-3: rgba(20, 16, 37, 0.96);
  --new-line: rgba(167, 139, 250, 0.22);
  --new-line-strong: rgba(167, 139, 250, 0.36);
  --new-text: #eeeaf6;
  --new-green: #8b5cf6;
  --gallery-paper: #0c0a14;
  --gallery-ink: #eeeaf6;
  --gallery-blue: #8b5cf6;
  --gallery-border: 1px solid rgba(167, 139, 250, 0.24);
  --gallery-shadow: 0 22px 64px -28px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.035);
  --sh: 0 18px 46px -26px rgba(0, 0, 0, 0.72);
  --smooth-v5-bg: #0c0a14;
  --smooth-v5-card: rgba(26, 21, 48, 0.94);
  --smooth-v5-card-2: rgba(20, 16, 37, 0.96);
  --smooth-v5-text: #eeeaf6;
  --smooth-v5-muted: #b0a8c4;
  --smooth-v5-line: rgba(167, 139, 250, 0.22);
  --smooth-v5-line-strong: rgba(167, 139, 250, 0.36);
  --smooth-v5-accent: #8b5cf6;
  --smooth-v5-accent-2: #22d3ee;
  --smooth-v5-glow: 0 0 34px rgba(139, 92, 246, 0.18);
  background:
    radial-gradient(circle at 14% -10%, rgba(139, 92, 246, 0.18), transparent 34%),
    radial-gradient(circle at 88% 8%, rgba(34, 211, 238, 0.12), transparent 32%),
    linear-gradient(180deg, #0c0a14 0%, #100d1d 58%, #0c0a14 100%) !important;
  color: var(--smooth-v5-text) !important;
}

html body.v6-mode.v6-skin-classic:not(.page-discover) {
  height: auto !important;
  min-height: 100dvh !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

html body.v6-mode.v6-skin-classic .nav-bar,
html body.v6-mode.v6-skin-classic .v6-app-tabbar {
  -webkit-backdrop-filter: blur(18px) saturate(130%) !important;
  backdrop-filter: blur(18px) saturate(130%) !important;
  background: rgba(12, 10, 20, 0.84) !important;
  border-color: rgba(167, 139, 250, 0.18) !important;
  box-shadow: 0 14px 42px -24px rgba(0, 0, 0, 0.88) !important;
  color: var(--smooth-v5-text) !important;
}

html body.v6-mode.v6-skin-classic .nav-bar :where(a, button, i, span),
html body.v6-mode.v6-skin-classic .v6-app-tabbar :where(a, button, i, span) {
  color: var(--smooth-v5-muted) !important;
  -webkit-text-fill-color: currentColor !important;
}

html body.v6-mode.v6-skin-classic .v6-app-tab,
html body.v6-mode.v6-skin-classic .weird-tabbar-item {
  border-radius: 999px !important;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease !important;
}

html body.v6-mode.v6-skin-classic .v6-app-tab.is-active,
html body.v6-mode.v6-skin-classic .weird-tabbar-item.is-active {
  background: linear-gradient(135deg, var(--smooth-v5-accent), var(--smooth-v5-accent-2)) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 999px !important;
  box-shadow: 0 12px 30px -18px rgba(139, 92, 246, 0.9), var(--smooth-v5-glow) !important;
  color: #fff !important;
  transform: translateY(-1px) !important;
}

html body.v6-mode.v6-skin-classic .v6-app-tab.is-active :where(i, span),
html body.v6-mode.v6-skin-classic .weird-tabbar-item.is-active :where(i, span) {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

html body.v6-mode.v6-skin-classic #main :where(
  .acct-quicklink.is-active, .profile-action-primary, .btn.primary, .btn-glow.primary,
  .search-go, .uqc-cta, .pvp-mode-tab.is-active, .pvpgf-pill.is-active, .shop-btn.equipped,
  .weird-notif-filter.btn-glow.is-active, .discover-audience-pill.active
) {
  background: linear-gradient(135deg, var(--smooth-v5-accent), var(--smooth-v5-accent-2)) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 999px !important;
  box-shadow: 0 12px 28px -18px rgba(139, 92, 246, 0.9), var(--smooth-v5-glow) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

html body.v6-mode.v6-skin-classic.page-discover #main .discover-audience {
  background: transparent !important;
  gap: 10px !important;
  padding-bottom: 8px !important;
}

html body.v6-mode.v6-skin-classic.page-discover #main .discover-audience-pill,
html body.v6-mode.v6-skin-classic.page-discover .discover-wrap-signal-board .discover-audience-pill,
html body.v6-mode.v6-skin-classic .weird-notif-filter.btn-glow {
  -webkit-backdrop-filter: blur(14px) saturate(130%) !important;
  backdrop-filter: blur(14px) saturate(130%) !important;
  background: rgba(26, 21, 48, 0.76) !important;
  border: 1px solid var(--smooth-v5-line) !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  color: var(--smooth-v5-muted) !important;
  font-size: 0.82rem !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease !important;
}

html body.v6-mode.v6-skin-classic.page-discover #main .discover-audience-pill.active,
html body.v6-mode.v6-skin-classic.page-discover .discover-wrap-signal-board .discover-audience-pill.active,
html body.v6-mode.v6-skin-classic .weird-notif-filter.btn-glow.is-active {
  background: linear-gradient(135deg, var(--smooth-v5-accent), var(--smooth-v5-accent-2)) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  transform: translateY(-1px) !important;
}

html body.v6-mode.v6-skin-classic.page-discover #main .discover-stream {
  gap: 18px !important;
}

html body.v6-mode.v6-skin-classic.page-discover #main .discover-stream > .card,
html body.v6-mode.v6-skin-classic.page-discover #main .discover-stream > .discover-section {
  background:
    linear-gradient(180deg, rgba(34, 29, 58, 0.96), rgba(20, 16, 37, 0.97)) !important;
  border: 1px solid var(--smooth-v5-line) !important;
  border-radius: 26px !important;
  box-shadow: var(--gallery-shadow) !important;
  color: var(--smooth-v5-text) !important;
  overflow-x: hidden !important;
  padding: clamp(18px, 5vw, 26px) !important;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease !important;
}

html body.v6-mode.v6-skin-classic.page-discover #main .discover-stream > .card *,
html body.v6-mode.v6-skin-classic.page-discover #main .discover-stream > .discover-section * {
  color: var(--smooth-v5-text) !important;
  -webkit-text-fill-color: currentColor !important;
}

html body.v6-mode.v6-skin-classic.page-discover #main .discover-stream > .card h2,
html body.v6-mode.v6-skin-classic.page-discover #main .discover-stream > .card h3,
html body.v6-mode.v6-skin-classic.page-discover #main .discover-stream > .card .q-text {
  color: var(--smooth-v5-text) !important;
  font-family: "Space Grotesk", Inter, -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: clamp(1.42rem, 7vw, 2.18rem) !important;
  font-weight: 850 !important;
  letter-spacing: -0.04em !important;
  line-height: 1.05 !important;
  text-transform: none !important;
}

html body.v6-mode.v6-skin-classic.page-discover #main :where(.discover-quiz-opt, .take-answers button, .v6-chip, .btn, .primary-take) {
  background: rgba(255, 255, 255, 0.055) !important;
  border: 1px solid var(--smooth-v5-line) !important;
  border-radius: 16px !important;
  box-shadow: none !important;
  color: var(--smooth-v5-text) !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em !important;
  text-transform: none !important;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease !important;
}

html body.v6-mode.v6-skin-classic.page-discover #main :where(.discover-quiz-opt, .take-answers button, .v6-chip, .btn, .primary-take):is(:hover, :focus-visible) {
  background: rgba(139, 92, 246, 0.16) !important;
  border-color: rgba(167, 139, 250, 0.48) !important;
}

html body.v6-mode.v6-skin-classic.page-discover #main :where(.discover-quiz-opt, .take-answers button, .v6-chip, .btn, .primary-take):active {
  transform: scale(0.985) !important;
}

html body.v6-mode.v6-skin-classic.page-discover #main :where(.dqo-key, .v6-chip i) {
  background: rgba(139, 92, 246, 0.16) !important;
  border: 1px solid rgba(167, 139, 250, 0.3) !important;
  border-radius: 10px !important;
  color: #c4b5fd !important;
}

html body.v6-mode.v6-skin-classic.page-discover #main :where(.pill, .discover-quiz-instream-reward, .v6-card-meta, .discover-card-meta, .streaming-badge) {
  background: rgba(167, 139, 250, 0.1) !important;
  border: 1px solid rgba(167, 139, 250, 0.24) !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  color: #d9d1ff !important;
  font-size: 0.76rem !important;
  letter-spacing: 0.01em !important;
  text-transform: none !important;
}

html body.v6-mode.v6-skin-classic.page-discover #main .card .pill.take,
html body.v6-mode.v6-skin-classic.page-discover #main .card .pill.match,
html body.v6-mode.v6-skin-classic.page-discover #main .card .pill.media,
html body.v6-mode.v6-skin-classic.page-discover #main .card .pill.tournament,
html body.v6-mode.v6-skin-classic.page-discover #main .card a.pill.v6-cat-pill-link,
html body.v6-mode.v6-skin-classic.page-discover #main .card .streaming-badge,
html body.v6-mode.v6-skin-classic.page-discover #main .card .btn.primary-media,
html body.v6-mode.v6-skin-classic.page-discover #main .card .btn.primary,
html body.v6-mode.v6-skin-classic.page-discover #main .card .primary-take,
html body.v6-mode.v6-skin-classic.page-discover #main .card .primary-media {
  background: linear-gradient(135deg, var(--smooth-v5-accent), var(--smooth-v5-accent-2)) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

html body.v6-mode.v6-skin-classic.page-discover #main .discover-quiz-skip,
html body.v6-mode.v6-skin-classic.page-discover #main .v6-detail-link,
html body.v6-mode.v6-skin-classic.page-discover #main .discover-card-save,
html body.v6-mode.v6-skin-classic.page-discover #main .discover-card-more {
  background: rgba(255, 255, 255, 0.055) !important;
  border: 1px solid var(--smooth-v5-line) !important;
  border-radius: 16px !important;
  color: #d9d1ff !important;
  min-height: 44px !important;
}

html body.v6-mode.v6-skin-classic.page-discover #main .v6-today-row,
html body.v6-mode.v6-skin-classic.page-discover #main .v6-today-row summary {
  background: rgba(255, 255, 255, 0.055) !important;
  border: 1px solid var(--smooth-v5-line) !important;
  border-radius: 18px !important;
  color: var(--smooth-v5-text) !important;
}

html body.v6-mode.v6-skin-classic.page-discover #main :where(.v6-progress, .v6-result-bar) {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 0 !important;
  border-radius: 999px !important;
}

html body.v6-mode.v6-skin-classic.page-discover #main :where(.v6-progress, .v6-result-bar) > span {
  background: linear-gradient(90deg, var(--smooth-v5-accent), var(--smooth-v5-accent-2)) !important;
}

html body.v6-mode.v6-skin-classic.page-discover #main .card.media {
  background: var(--smooth-v5-card-2) !important;
  border-radius: 26px !important;
  padding: 0 !important;
}

html body.v6-mode.v6-skin-classic.page-discover #main .card.media .media-flex,
html body.v6-mode.v6-skin-classic.page-discover #main .card.media .v6-poster-stack {
  gap: 0 !important;
}

html body.v6-mode.v6-skin-classic.page-discover #main .card.media .poster,
html body.v6-mode.v6-skin-classic.page-discover #main .card.media .meme-zoom-trigger,
html body.v6-mode.v6-skin-classic.page-discover #main .card.media .v6-media-shell {
  border: 0 !important;
  border-radius: 25px 25px 0 0 !important;
}

html body.v6-mode.v6-skin-classic.page-discover #main .card.media img {
  filter: saturate(1.06) contrast(1.02) !important;
}

html body.v6-mode.v6-skin-classic.page-discover #main .card.media .v6-media-overlay {
  gap: 8px !important;
}

html body.v6-mode.v6-skin-classic.page-discover #main .card.media .v6-media-overlay .v6-card-pct,
html body.v6-mode.v6-skin-classic.page-discover #main .card.media .v6-card-pct,
html body.v6-mode.v6-skin-classic.page-discover #main .card.media .v6-media-overlay .pill,
html body.v6-mode.v6-skin-classic.page-discover #main .card.media .v6-media-overlay a.pill.v6-cat-pill-link {
  -webkit-backdrop-filter: blur(12px) saturate(130%) !important;
  backdrop-filter: blur(12px) saturate(130%) !important;
  background: rgba(12, 10, 20, 0.78) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 999px !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

html body.v6-mode.v6-skin-classic.page-discover #main .card.media .v6-card-pct *,
html body.v6-mode.v6-skin-classic.page-discover #main .card.media .v6-media-overlay .pill * {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

html body.v6-mode.v6-skin-classic.page-discover #main .card.media .v6-card-copy,
html body.v6-mode.v6-skin-classic.page-discover #main .card.media .v6-card-footer-tools {
  background: linear-gradient(180deg, rgba(26, 21, 48, 0.98), rgba(20, 16, 37, 0.98)) !important;
  border-top: 1px solid var(--smooth-v5-line) !important;
  color: var(--smooth-v5-text) !important;
}

html body.v6-mode.v6-skin-classic.page-discover #main .card.media .v6-card-copy,
html body.v6-mode.v6-skin-classic.page-discover #main .card.media .v6-card-copy *,
html body.v6-mode.v6-skin-classic.page-discover #main .card.media .v6-card-footer-tools,
html body.v6-mode.v6-skin-classic.page-discover #main .card.media .v6-card-footer-tools * {
  color: var(--smooth-v5-text) !important;
  -webkit-text-fill-color: currentColor !important;
}

html body.v6-mode.v6-skin-classic.page-discover #main .card.media .v6-card-copy .q-text,
html body.v6-mode.v6-skin-classic.page-discover #main .card.media .v6-title-link {
  color: var(--smooth-v5-text) !important;
  -webkit-text-fill-color: var(--smooth-v5-text) !important;
}

html body.v6-mode.v6-skin-classic.page-discover #main .card.media.v6-compat-card,
html body.v6-mode.v6-skin-classic.page-discover #main .card.media.v6-tonight-card,
html body.v6-mode.v6-skin-classic.page-discover #main .card.media.v6-special-card:has(> h2.q-text) {
  background:
    radial-gradient(circle at 18% 12%, rgba(139, 92, 246, 0.16), transparent 36%),
    linear-gradient(180deg, rgba(34, 29, 58, 0.96), rgba(20, 16, 37, 0.97)) !important;
}

html body.v6-mode.v6-skin-classic.page-discover #main .v6-social-rec-item {
  background: rgba(255, 255, 255, 0.045) !important;
  border: 1px solid var(--smooth-v5-line) !important;
  border-radius: 18px !important;
  padding: 10px !important;
}

html body.v6-mode.v6-skin-classic.page-discover #main .v6-social-rec-thumb {
  border-radius: 14px !important;
  box-shadow: none !important;
}

@media (hover: hover) and (pointer: fine) {
  html body.v6-mode.v6-skin-classic.page-discover #main .discover-stream > .card:hover,
  html body.v6-mode.v6-skin-classic.page-discover #main .discover-stream > .discover-section:hover {
    border-color: var(--smooth-v5-line-strong) !important;
    box-shadow: 0 26px 78px -32px rgba(0, 0, 0, 0.92), var(--smooth-v5-glow) !important;
    transform: translateY(-3px) !important;
  }
}

@media (min-width: 900px) {
  html body.v6-mode.v6-skin-classic.page-discover {
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  html body.v6-mode.v6-skin-classic.page-discover #main .discover-stream {
    gap: 24px !important;
    padding: 96px 32px 110px !important;
  }

  html body.v6-mode.v6-skin-classic.page-discover #main .discover-stream > .card,
  html body.v6-mode.v6-skin-classic.page-discover #main .discover-stream > .discover-section {
    border-radius: 24px !important;
    padding: 22px !important;
  }

  html body.v6-mode.v6-skin-classic.page-discover #main .discover-stream > .card h2,
  html body.v6-mode.v6-skin-classic.page-discover #main .discover-stream > .card h3,
  html body.v6-mode.v6-skin-classic.page-discover #main .discover-stream > .card .q-text {
    font-size: clamp(1.25rem, 1.72vw, 1.95rem) !important;
  }

  html body.v6-mode.v6-skin-classic.page-discover #main :where(.discover-quiz-opt, .take-answers button, .v6-chip, .btn, .primary-take) {
    min-height: 46px !important;
  }
}

/* Final specificity guard: the first experimental gallery block styled media
   cards as black zine posters. Keep the media functionality but make the card
   shell match the Smooth V5 surface system. */
html body.v6-mode.v6-skin-classic.page-discover #main .discover-stream > .discover-card.card,
html body.v6-mode.v6-skin-classic.page-discover #main .discover-stream > .discover-section {
  border: 1px solid var(--smooth-v5-line) !important;
  border-radius: 26px !important;
}

html body.v6-mode.v6-skin-classic.page-discover #main .discover-stream > .discover-card.discover-quiz-card.card {
  border: 1px solid var(--smooth-v5-line) !important;
}

html body.v6-mode.v6-skin-classic.page-discover #main #discover-stream.discover-stream > .discover-card.card,
html body.v6-mode.v6-skin-classic.page-discover #main #discover-stream.discover-stream > .v6-question-card.discover-quiz-card-instream {
  border: 1px solid var(--smooth-v5-line) !important;
}

html body.v6-mode.v6-skin-classic.page-discover #main .discover-stream > .discover-card.card.media {
  background:
    linear-gradient(180deg, rgba(34, 29, 58, 0.96), rgba(20, 16, 37, 0.98)) !important;
  border: 1px solid var(--smooth-v5-line) !important;
  border-radius: 26px !important;
  box-shadow: var(--gallery-shadow) !important;
  overflow: hidden !important;
  padding: 0 !important;
}

html body.v6-mode.v6-skin-classic.page-discover #main .discover-stream > .discover-card.card.media .poster,
html body.v6-mode.v6-skin-classic.page-discover #main .discover-stream > .discover-card.card.media .meme-zoom-trigger,
html body.v6-mode.v6-skin-classic.page-discover #main .discover-stream > .discover-card.card.media .v6-media-shell {
  border-radius: 25px 25px 0 0 !important;
}

/* Smooth V5 card-fit pass: the fixed gallery/card-grid frame needs each card
   type to manage its own internal rhythm so long content does not look cut off
   and short utility cards do not feel stranded in empty space. */
html body.v6-mode.v6-skin-classic.page-discover #main #discover-stream.discover-stream > .card {
  overscroll-behavior: contain !important;
}

html body.v6-mode.v6-skin-classic.page-discover #main #discover-stream.discover-stream > .card:not(.media) > .media-flex,
html body.v6-mode.v6-skin-classic.page-discover #main #discover-stream.discover-stream > .card:not(.media) > .v6-poster-stack {
  display: grid !important;
  flex: 1 1 auto !important;
  gap: 12px !important;
  grid-template-rows: minmax(88px, 30%) minmax(0, 1fr) !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

html body.v6-mode.v6-skin-classic.page-discover #main #discover-stream.discover-stream > .card:not(.media) > .media-flex .v6-media-shell,
html body.v6-mode.v6-skin-classic.page-discover #main #discover-stream.discover-stream > .card:not(.media) > .v6-poster-stack .v6-media-shell {
  align-items: center !important;
  border-radius: 18px !important;
  display: flex !important;
  justify-content: center !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

html body.v6-mode.v6-skin-classic.page-discover #main #discover-stream.discover-stream > .card:not(.media) > .media-flex .v6-card-copy,
html body.v6-mode.v6-skin-classic.page-discover #main #discover-stream.discover-stream > .card:not(.media) > .v6-poster-stack .v6-card-copy {
  min-height: 0 !important;
  overflow-y: auto !important;
  padding-bottom: 2px !important;
  scrollbar-color: rgba(167, 139, 250, 0.42) transparent !important;
  scrollbar-width: thin !important;
}

html body.v6-mode.v6-skin-classic.page-discover #main #discover-stream.discover-stream > .card .v6-card-title-row {
  align-items: flex-start !important;
  flex: 0 0 auto !important;
  gap: 8px !important;
  min-height: 0 !important;
}

html body.v6-mode.v6-skin-classic.page-discover #main #discover-stream.discover-stream > .card .v6-card-title-row :where(h2, h3, .q-text, .v6-title-link) {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 4 !important;
  line-clamp: 4 !important;
  max-height: none !important;
  overflow: hidden !important;
}

html body.v6-mode.v6-skin-classic.page-discover #main #discover-stream.discover-stream > .card .v6-card-copy > p {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 3 !important;
  line-clamp: 3 !important;
  margin-bottom: 10px !important;
  overflow: hidden !important;
}

html body.v6-mode.v6-skin-classic.page-discover #main #discover-stream.discover-stream > .card .v6-card-copy .btn-row,
html body.v6-mode.v6-skin-classic.page-discover #main #discover-stream.discover-stream > .card > .v6-card-footer-tools {
  flex: 0 0 auto !important;
  margin-top: 10px !important;
}

html body.v6-mode.v6-skin-classic.page-discover #main #discover-stream.discover-stream > .v6-interest-card .v6-interest-form {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

html body.v6-mode.v6-skin-classic.page-discover #main #discover-stream.discover-stream > .v6-interest-card .v6-chip-grid {
  flex: 1 1 auto !important;
  gap: 10px !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  margin-bottom: 10px !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  scrollbar-color: rgba(167, 139, 250, 0.42) transparent !important;
  scrollbar-width: thin !important;
}

html body.v6-mode.v6-skin-classic.page-discover #main #discover-stream.discover-stream > .v6-interest-card .v6-chip {
  align-items: center !important;
  font-size: clamp(0.78rem, 3.2vw, 0.88rem) !important;
  justify-content: flex-start !important;
  min-height: 44px !important;
  padding: 9px 10px !important;
}

html body.v6-mode.v6-skin-classic.page-discover #main #discover-stream.discover-stream > .v6-interest-card .v6-interest-form > p {
  flex: 0 0 auto !important;
  font-size: 0.86rem !important;
  line-height: 1.3 !important;
  margin: 0 0 8px !important;
}

html body.v6-mode.v6-skin-classic.page-discover #main #discover-stream.discover-stream > .v6-interest-card .btn-row {
  flex: 0 0 auto !important;
  margin-top: 0 !important;
}

html body.v6-mode.v6-skin-classic.page-discover #main #discover-stream.discover-stream > .v6-compat-card,
html body.v6-mode.v6-skin-classic.page-discover #main #discover-stream.discover-stream > .card.match.v6-special-card {
  justify-content: flex-start !important;
}

html body.v6-mode.v6-skin-classic.page-discover #main #discover-stream.discover-stream > .v6-compat-card > :last-child,
html body.v6-mode.v6-skin-classic.page-discover #main #discover-stream.discover-stream > .card.match.v6-special-card > :last-child {
  margin-top: auto !important;
  margin-bottom: 0 !important;
}

html body.v6-mode.v6-skin-classic.page-discover #main #discover-stream.discover-stream > .v6-compat-card > p,
html body.v6-mode.v6-skin-classic.page-discover #main #discover-stream.discover-stream > .card.match.v6-special-card > p {
  max-width: 32ch !important;
}

html body.v6-mode.v6-skin-classic.page-discover #main #discover-stream.discover-stream > .v6-tonight-card {
  min-height: 0 !important;
  overflow-y: auto !important;
}

html body.v6-mode.v6-skin-classic.page-discover #main #discover-stream.discover-stream > .v6-tonight-card .v6-mini-list {
  flex: 1 1 auto !important;
  gap: 8px !important;
  margin: 10px 0 !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  scrollbar-color: rgba(167, 139, 250, 0.42) transparent !important;
  scrollbar-width: thin !important;
}

html body.v6-mode.v6-skin-classic.page-discover #main #discover-stream.discover-stream > .v6-tonight-card .btn-row {
  flex: 0 0 auto !important;
  margin-top: 10px !important;
}

@media (min-width: 900px) {
  html body.v6-mode.v6-skin-classic.page-discover #main #discover-stream.discover-stream > .card:not(.media) > .media-flex,
  html body.v6-mode.v6-skin-classic.page-discover #main #discover-stream.discover-stream > .card:not(.media) > .v6-poster-stack {
    grid-template-rows: minmax(80px, 28%) minmax(0, 1fr) !important;
  }

  html body.v6-mode.v6-skin-classic.page-discover #main #discover-stream.discover-stream > .card .v6-card-title-row :where(h2, h3, .q-text, .v6-title-link) {
    -webkit-line-clamp: 3 !important;
    line-clamp: 3 !important;
  }

  html body.v6-mode.v6-skin-classic.page-discover #main #discover-stream.discover-stream > .card .v6-card-copy > p {
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
  }

  html body.v6-mode.v6-skin-classic.page-discover #main #discover-stream.discover-stream > .v6-tonight-card .v6-mini-list {
    gap: 7px !important;
    margin: 8px 0 !important;
  }

  html body.v6-mode.v6-skin-classic.page-discover #main #discover-stream.discover-stream > .v6-social-rec-card .v6-social-rec-head,
  html body.v6-mode.v6-skin-classic.page-discover #main #discover-stream.discover-stream > .v6-social-rec-card .v6-social-rec-item {
    margin-bottom: 12px !important;
  }

  html body.v6-mode.v6-skin-classic.page-discover #main #discover-stream.discover-stream > .v6-social-rec-card .v6-social-rec-item {
    gap: 8px !important;
    padding: 8px !important;
  }

  html body.v6-mode.v6-skin-classic.page-discover #main #discover-stream.discover-stream > .v6-social-rec-card .v6-social-rec-actions {
    gap: 8px !important;
  }
}

/* ============================================================
   CLASSIC SKIN — Sitewide V5 cards + stream swipe/scroll option
   The rest of the admin-only Classic preview should read as V5:
   dark navy, violet/cyan accents, soft depth, but with a slightly
   larger and bolder card system than legacy V5.
   ============================================================ */

html body.v6-mode.v6-skin-classic:not(.page-discover) {
  --smooth-v5-site-card: rgba(30, 24, 54, 0.97);
  --smooth-v5-site-card-2: rgba(21, 17, 38, 0.98);
  --smooth-v5-site-line: rgba(167, 139, 250, 0.3);
  --smooth-v5-site-line-strong: rgba(167, 139, 250, 0.48);
  --smooth-v5-site-shadow: 0 24px 70px -34px rgba(0, 0, 0, 0.88), 0 0 0 1px rgba(255, 255, 255, 0.035);
  background:
    radial-gradient(circle at 12% -8%, rgba(139, 92, 246, 0.2), transparent 34%),
    radial-gradient(circle at 92% 4%, rgba(34, 211, 238, 0.13), transparent 32%),
    linear-gradient(180deg, #0c0a14 0%, #111024 56%, #0c0a14 100%) !important;
  color: var(--smooth-v5-text) !important;
}

html body.v6-mode.v6-skin-classic:not(.page-discover) #main > .container {
  max-width: 1280px !important;
  width: min(1280px, calc(100vw - 28px)) !important;
  padding: clamp(22px, 3.6vw, 44px) 0 96px !important;
}

html body.v6-mode.v6-skin-classic:not(.page-discover) #main > .container > .wrapper {
  color: var(--smooth-v5-text) !important;
  font-size: 16px !important;
  line-height: 1.62 !important;
}

html body.v6-mode.v6-skin-classic:not(.page-discover) #main :is(
  .discover-wrap, .profile-hero, .profile-hero-content, .profile-card,
  .profile-compare, .profile-aura-section, .profile-arg-card, .profile-pvp-h2h,
  .msg-shell, .msg-sidebar, .msg-thread, .msg-taste-hero, .msg-taste-card,
  .msg-taste-stat, .pvp-hero, .pvp-mode-switch, .pvp-coll, .pvp-coll > details,
  .pvp-coll-body, .pvp-match, .pvp-gametile, .pvp-lobby-card, .pvp-pack-card,
  .pvp-pick-card, .pvp-guest-hero, .pvp-guest-card, .search-card,
  .search-summary, .search-group, .connect-tile, .tm-panel, .tm-person,
  .tm-stat, .tm-drift-card, .shop-card, .shop-section, .shop-cat, .notif-row,
  .acct-card, .settings-card, .notify-card, .question-card, .uqc-q-card,
  .uqc-results, .uqc-card-shell, .toy-card, .admin-card, .faq-hero,
  .faq-section, .contact-card, .contact-panel, .subpage-control-deck,
  .category-filter-panel, .discover-card, .discover-card-item, .dcib-stream-card,
  .card, .panel, .box, .well
) {
  background:
    linear-gradient(180deg, var(--smooth-v5-site-card), var(--smooth-v5-site-card-2)) !important;
  border: 2px solid var(--smooth-v5-site-line) !important;
  border-radius: 24px !important;
  box-shadow: var(--smooth-v5-site-shadow) !important;
  color: var(--smooth-v5-text) !important;
}

html body.v6-mode.v6-skin-classic:not(.page-discover) #main :is(
  .profile-card, .profile-hero, .profile-compare, .profile-aura-section,
  .msg-sidebar, .msg-thread, .pvp-hero, .pvp-mode-switch, .pvp-coll,
  .pvp-lobby-card, .pvp-pack-card, .search-card, .search-summary,
  .connect-tile, .tm-panel, .tm-person, .tm-stat, .shop-card, .shop-section,
  .notif-row, .acct-card, .settings-card, .notify-card, .question-card,
  .uqc-q-card, .uqc-results, .toy-card, .admin-card, .faq-section,
  .contact-card, .subpage-control-deck, .category-filter-panel, .card,
  .panel, .box, .well
) {
  margin-bottom: clamp(18px, 3vw, 28px) !important;
  padding: clamp(20px, 3vw, 32px) !important;
}

html body.v6-mode.v6-skin-classic:not(.page-discover) #main section.discover-section.subpage-browse-section,
html body.v6-mode.v6-skin-classic:not(.page-discover) #main section.subpage-browse-section {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

html body.v6-mode.v6-skin-classic:not(.page-discover) #main .category-card-stream > :is(article, section, div):not(.weird-infscroll):not(.discover-section-head) {
  background:
    linear-gradient(180deg, var(--smooth-v5-site-card), var(--smooth-v5-site-card-2)) !important;
  border: 2px solid var(--smooth-v5-site-line) !important;
  border-radius: 24px !important;
  box-shadow: var(--smooth-v5-site-shadow) !important;
  color: var(--smooth-v5-text) !important;
  padding: clamp(18px, 2.6vw, 28px) !important;
}

html body.v6-mode.v6-skin-classic:not(.page-discover) #main :is(
  h1, h2, h3, h4, .msg-title, .tm-title, .pvp-title, .shop-title,
  .discover-bar-title, .search-summary-title, .subpage-control-title
) {
  color: var(--smooth-v5-text) !important;
  font-family: "Space Grotesk", Inter, -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-weight: 900 !important;
  letter-spacing: -0.045em !important;
}

html body.v6-mode.v6-skin-classic:not(.page-discover) #main :is(h1, .msg-title, .tm-title, .pvp-title) {
  font-size: clamp(2rem, 8vw, 4rem) !important;
  line-height: 0.96 !important;
}

html body.v6-mode.v6-skin-classic:not(.page-discover) #main :is(h2, .discover-bar-title, .search-summary-title) {
  font-size: clamp(1.45rem, 5vw, 2.35rem) !important;
  line-height: 1.02 !important;
}

html body.v6-mode.v6-skin-classic:not(.page-discover) #main :is(p, li, td, th, label, small, em, span):not(.btn):not(.pill):not(.badge):not(.tag):not(.chip) {
  color: var(--smooth-v5-muted) !important;
}

html body.v6-mode.v6-skin-classic:not(.page-discover) #main :is(
  .btn, .btn-glow, button:not(.v6-app-tab):not(.nav-link):not(.weird-notif-trigger):not(.weird-search-trigger),
  input[type="submit"], .profile-action, .pvp-mode-tab, .pvpgf-pill, .subpage-pill,
  .discover-audience-pill, .shop-btn, .acct-save, .search-go
) {
  border-radius: 999px !important;
  font-weight: 850 !important;
  min-height: 46px !important;
  padding: 0.72rem 1.08rem !important;
}

html body.v6-mode.v6-skin-classic:not(.page-discover) #main :is(
  .btn.primary, .btn-glow.primary, .profile-action-primary, .pvp-mode-tab.is-active,
  .pvpgf-pill.is-active, .subpage-pill.active, .subpage-pill.is-active,
  .discover-audience-pill.active, .shop-btn.equipped, .search-go
) {
  background: linear-gradient(135deg, var(--smooth-v5-accent), var(--smooth-v5-accent-2)) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 14px 34px -20px rgba(139, 92, 246, 0.9), var(--smooth-v5-glow) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

html body.v6-mode.v6-skin-classic:not(.page-discover) #main :is(
  input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
  textarea, select
) {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 2px solid var(--smooth-v5-site-line) !important;
  border-radius: 16px !important;
  color: var(--smooth-v5-text) !important;
  min-height: 48px !important;
  padding: 0.75rem 0.95rem !important;
}

html body.v6-mode.v6-skin-classic:not(.page-discover) #main :is(table) {
  border-radius: 20px !important;
  overflow: hidden !important;
}

@media (min-width: 900px) {
  html body.v6-mode.v6-skin-classic:not(.page-discover) #main > .container {
    max-width: 1320px !important;
    width: min(1320px, calc(100vw - 48px)) !important;
  }

  html body.v6-mode.v6-skin-classic:not(.page-discover) #main :is(
    .profile-card, .profile-hero, .profile-compare, .profile-aura-section,
    .msg-sidebar, .msg-thread, .pvp-hero, .pvp-mode-switch, .pvp-coll,
    .pvp-lobby-card, .pvp-pack-card, .search-card, .search-summary,
    .connect-tile, .tm-panel, .tm-person, .tm-stat, .shop-card, .shop-section,
    .notif-row, .acct-card, .settings-card, .notify-card, .question-card,
    .uqc-q-card, .uqc-results, .toy-card, .admin-card, .faq-section,
    .contact-card, .subpage-control-deck, .category-filter-panel, .card,
    .panel, .box, .well
  ) {
    border-radius: 28px !important;
    padding: clamp(24px, 2.6vw, 38px) !important;
  }
}

html body.v6-mode.v6-skin-classic.page-discover .v6-stream-mode-toggle {
  -webkit-backdrop-filter: blur(16px) saturate(140%) !important;
  align-items: center !important;
  backdrop-filter: blur(16px) saturate(140%) !important;
  background: rgba(12, 10, 20, 0.82) !important;
  border: 1px solid var(--smooth-v5-line) !important;
  border-radius: 999px !important;
  box-shadow: 0 14px 36px -24px rgba(0, 0, 0, 0.9) !important;
  display: inline-flex !important;
  gap: 3px !important;
  height: 36px !important;
  padding: 3px !important;
  position: fixed !important;
  right: 12px !important;
  top: 66px !important;
  z-index: 10030 !important;
}

html body.v6-mode.v6-skin-classic.page-discover .v6-stream-mode-toggle button {
  align-items: center !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 999px !important;
  color: var(--smooth-v5-muted) !important;
  cursor: pointer !important;
  display: inline-flex !important;
  font-size: 0.72rem !important;
  font-weight: 850 !important;
  gap: 4px !important;
  height: 30px !important;
  line-height: 1 !important;
  min-height: 30px !important;
  padding: 0 9px !important;
}

html body.v6-mode.v6-skin-classic.page-discover .v6-stream-mode-toggle button.is-active {
  background: linear-gradient(135deg, var(--smooth-v5-accent), var(--smooth-v5-accent-2)) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

@media (max-width: 899px) {
  html body.v6-mode.v6-skin-classic.page-discover .v6-stream-mode-toggle {
    width: 126px !important;
  }

  html body.v6-mode.v6-skin-classic.page-discover .v6-stream-mode-toggle button {
    flex: 1 1 0 !important;
    gap: 0 !important;
    justify-content: center !important;
    padding: 0 4px !important;
  }

  html body.v6-mode.v6-skin-classic.page-discover .v6-stream-mode-toggle button i {
    display: none !important;
  }

  html body.v6-mode.v6-skin-classic.page-discover #main .discover-audience {
    right: 150px !important;
  }

  html body.v6-mode.v6-skin-classic.page-discover.v6-stream-mode-scroll {
    height: auto !important;
    min-height: 100dvh !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  html body.v6-mode.v6-skin-classic.page-discover.v6-stream-mode-scroll #main {
    height: auto !important;
    min-height: 100dvh !important;
    overflow: visible !important;
    padding: 0 0 88px !important;
  }

  html body.v6-mode.v6-skin-classic.page-discover.v6-stream-mode-scroll #main .discover-audience {
    left: auto !important;
    margin: 66px 132px 10px 12px !important;
    position: sticky !important;
    right: auto !important;
    top: 66px !important;
    transform: none !important;
    width: auto !important;
  }

  html body.v6-mode.v6-skin-classic.page-discover.v6-stream-mode-scroll #main .discover-stream {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    height: auto !important;
    inset: auto !important;
    margin: 0 !important;
    overflow: visible !important;
    padding: 12px 14px 96px !important;
    position: relative !important;
    scroll-padding-inline: 0 !important;
    scroll-snap-type: none !important;
    width: 100% !important;
  }

  html body.v6-mode.v6-skin-classic.page-discover.v6-stream-mode-scroll #main #discover-stream.discover-stream > .card,
  html body.v6-mode.v6-skin-classic.page-discover.v6-stream-mode-scroll #main #discover-stream.discover-stream > .discover-section {
    block-size: auto !important;
    flex: 0 0 auto !important;
    height: auto !important;
    max-height: none !important;
    min-height: min(620px, calc(100dvh - 180px)) !important;
    overflow: visible !important;
    scroll-snap-align: none !important;
    width: 100% !important;
  }

  html body.v6-mode.v6-skin-classic.page-discover.v6-stream-mode-scroll #main #discover-stream.discover-stream > .card.media {
    min-height: min(640px, calc(100dvh - 160px)) !important;
    overflow: hidden !important;
  }

  html body.v6-mode.v6-skin-classic.page-discover.v6-stream-mode-scroll #main #discover-stream.discover-stream > .card.media .media-flex,
  html body.v6-mode.v6-skin-classic.page-discover.v6-stream-mode-scroll #main #discover-stream.discover-stream > .card.media .v6-poster-stack {
    min-height: min(640px, calc(100dvh - 160px)) !important;
  }
}

@media (min-width: 900px) {
  html body.v6-mode.v6-skin-classic.page-discover .v6-stream-mode-toggle {
    display: inline-flex !important;
    height: 38px !important;
    right: 32px !important;
    top: 74px !important;
  }

  html body.v6-mode.v6-skin-classic.page-discover .v6-stream-mode-toggle button {
    font-size: 0.78rem !important;
    height: 32px !important;
    min-height: 32px !important;
    padding: 0 12px !important;
  }

  html body.v6-mode.v6-skin-classic.page-discover #main .discover-audience {
    left: 32px !important;
    max-width: none !important;
    right: 264px !important;
    transform: none !important;
    width: auto !important;
  }

  html body.v6-mode.v6-skin-classic.page-discover.v6-stream-mode-scroll {
    height: auto !important;
    min-height: 100dvh !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  html body.v6-mode.v6-skin-classic.page-discover.v6-stream-mode-scroll #main {
    height: auto !important;
    min-height: 100dvh !important;
    overflow: visible !important;
    padding: 0 0 88px !important;
  }

  html body.v6-mode.v6-skin-classic.page-discover.v6-stream-mode-scroll #main .discover-stream {
    align-items: stretch !important;
    display: grid !important;
    gap: 28px !important;
    grid-auto-flow: row dense !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    height: auto !important;
    inset: auto !important;
    margin: 0 auto !important;
    max-width: 1480px !important;
    overflow: visible !important;
    padding: 96px 32px 110px !important;
    position: relative !important;
    scroll-snap-type: none !important;
    width: 100% !important;
  }

  html body.v6-mode.v6-skin-classic.page-discover.v6-stream-mode-scroll #main #discover-stream.discover-stream > .card,
  html body.v6-mode.v6-skin-classic.page-discover.v6-stream-mode-scroll #main #discover-stream.discover-stream > .discover-section {
    align-self: stretch !important;
    block-size: 560px !important;
    flex: none !important;
    grid-column: auto !important;
    height: 560px !important;
    max-height: 560px !important;
    min-height: 560px !important;
    min-width: 0 !important;
    scroll-snap-align: none !important;
    width: auto !important;
  }

  html body.v6-mode.v6-skin-classic.page-discover.v6-stream-mode-swipe {
    height: 100dvh !important;
    overflow: hidden !important;
  }

  html body.v6-mode.v6-skin-classic.page-discover.v6-stream-mode-swipe #main {
    height: 100dvh !important;
    min-height: 100dvh !important;
    overflow: hidden !important;
    padding: 0 !important;
  }

  html body.v6-mode.v6-skin-classic.page-discover.v6-stream-mode-swipe #main .discover-stream {
    align-items: center !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 24px !important;
    height: auto !important;
    inset: 132px 0 48px 0 !important;
    margin: 0 !important;
    max-width: none !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 12px 32px 24px !important;
    position: fixed !important;
    scroll-padding-inline: 32px !important;
    scroll-snap-type: x mandatory !important;
    scrollbar-width: thin !important;
    width: 100vw !important;
  }

  html body.v6-mode.v6-skin-classic.page-discover.v6-stream-mode-swipe #main #discover-stream.discover-stream > .card,
  html body.v6-mode.v6-skin-classic.page-discover.v6-stream-mode-swipe #main #discover-stream.discover-stream > .discover-section {
    align-self: center !important;
    block-size: min(600px, calc(100dvh - 190px)) !important;
    flex: 0 0 clamp(320px, 25vw, 390px) !important;
    grid-column: auto !important;
    height: min(600px, calc(100dvh - 190px)) !important;
    max-height: min(600px, calc(100dvh - 190px)) !important;
    min-height: 0 !important;
    min-width: 0 !important;
    scroll-snap-align: center !important;
    scroll-snap-stop: always !important;
    width: clamp(320px, 25vw, 390px) !important;
  }
}
