/* ============================================
   yonogame888.com — App Discovery Marketplace
   Light modular cards · ruby VIP · editorial sans
   ============================================ */

:root {
  --bg-page: #f7f6f2;
  --bg-card: #ffffff;
  --bg-card-2: #fbfaf6;
  --bg-band: #f0eee8;
  --surface-dark: #18181b;
  --surface-dark-2: #27272a;
  --text-primary: #1a1a1f;
  --text-secondary: #4d4d57;
  --text-muted: #6b6b78;
  --text-on-dark: #f4f4f5;
  --text-on-dark-muted: #d4d4d8;
  --line-subtle: rgba(15, 15, 20, 0.08);
  --line-medium: rgba(15, 15, 20, 0.14);
  --line-strong: rgba(15, 15, 20, 0.22);
  --ruby: #b42318;
  --ruby-hover: #9a1c12;
  --ruby-accent: #f97066;
  --ruby-deep: #7c1610;
  --success: #1a7f4d;
  --warning: #b8841a;
  --danger: #c2252c;
  --focus-ring: #b42318;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --shadow-sm: 0 1px 2px rgba(15, 15, 20, 0.06), 0 1px 1px rgba(15, 15, 20, 0.04);
  --shadow-md: 0 4px 12px rgba(15, 15, 20, 0.08), 0 1px 3px rgba(15, 15, 20, 0.05);
  --shadow-lg: 0 12px 32px rgba(15, 15, 20, 0.12), 0 4px 8px rgba(15, 15, 20, 0.06);
  --header-h: 64px;
  --utility-h: 36px;
  --container: 1240px;
  --container-narrow: 980px;
  --font-body: "DM Sans", "Noto Sans", "Noto Sans Devanagari", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "DM Sans", "Noto Sans Devanagari", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

img, svg, video {
  max-width: 100%;
  display: block;
}

a {
  color: var(--ruby);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* WCAG 1.4.1 — links in flowing prose must be distinguishable without relying on color.
   Buttons, CTAs and card-link blocks already carry their own visual treatment; prose
   paragraphs and content lists need a persistent underline so the link is identifiable
   without color. */
p a,
.content-section a:not(.btn-install):not(.cta),
.content-section ol a:not(.btn-install):not(.cta),
.content-section ul a:not(.btn-install):not(.cta),
main section ol a:not(.btn-install):not(.cta):not(.cta-mobile):not(.cta-ghost):not(.brand):not(.hot-card):not(.yono-card):not(.news-card):not(.discovery-card):not(.footer-col):not(.footer-bottom):not(.app-row):not(.related-card):not(.catalogue-search):not(.related-grid):not(.detail-cta),
main section ul a:not(.btn-install):not(.cta):not(.cta-mobile):not(.cta-ghost):not(.brand):not(.hot-card):not(.yono-card):not(.news-card):not(.discovery-card):not(.footer-col):not(.footer-bottom):not(.app-row):not(.related-card):not(.catalogue-search):not(.related-grid):not(.detail-cta) {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: 4px;
}

button {
  font-family: inherit;
  cursor: pointer;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-primary);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 700;
}

h1 { font-size: clamp(28px, 4vw, 48px); letter-spacing: -0.02em; }
h2 { font-size: clamp(22px, 3vw, 32px); letter-spacing: -0.01em; }
h3 { font-size: clamp(18px, 2.4vw, 22px); }
h4 { font-size: clamp(16px, 2vw, 18px); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 1em; padding-left: 1.4em; }
li { margin-bottom: 0.4em; }
hr { border: 0; height: 1px; background: var(--line-subtle); margin: 2em 0; }

/* Skip link */
.skip-link {
  position: absolute;
  left: -10000px;
  top: 0;
  background: var(--ruby);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 6px 0;
  z-index: 1000;
  font-weight: 600;
}
.skip-link:focus {
  left: 0;
}

/* ============================================
   Top utility bar
   ============================================ */
.utility-bar {
  background: var(--surface-dark);
  color: var(--text-on-dark);
  font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.utility-bar a {
  color: var(--text-on-dark-muted);
  /* WCAG AA: link must have its own opaque background (transparent bg is
     evaluated against white, producing false positives). text-on-dark-muted
     on surface-dark is 10.96:1 which is well above 4.5:1. */
  background: var(--surface-dark);
}
.utility-bar a:hover { color: #fff; text-decoration: none; }
.utility-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--utility-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.utility-inner > ul {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
  overflow: hidden;
}
.utility-inner li { margin: 0; }
.utility-disclosure {
  color: var(--text-on-dark-muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 540px) {
  .utility-inner > ul:nth-of-type(2) { display: none; }
  .utility-disclosure { display: none; }
}

/* ============================================
   Brand header (sticky)
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 250;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-subtle);
  height: var(--header-h);
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 32px;
  height: 32px;
  background: var(--ruby);
  color: #fff;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.02em;
  flex: 0 0 32px;
}
.brand-name { white-space: nowrap; }
.brand-tag {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-left: 2px;
}

/* Desktop nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  list-style: none;
  padding: 0;
  flex: 1;
  justify-content: flex-end;
}
.main-nav a {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 14.5px;
  white-space: nowrap;
}
.main-nav a:hover {
  background: rgba(180, 35, 24, 0.06);
  color: var(--ruby);
  text-decoration: none;
}
.main-nav a[aria-current="page"] {
  color: var(--ruby);
  background: rgba(180, 35, 24, 0.08);
}
.main-nav a.cta {
  background: var(--ruby);
  color: #fff;
  padding: 9px 16px;
  font-weight: 600;
  margin-left: 4px;
}
.main-nav a.cta:hover { background: var(--ruby-hover); color: #fff; }
.main-nav a.cta-ghost {
  border: 1px solid var(--line-medium);
  color: var(--text-primary);
  padding: 8px 14px;
}
.main-nav a.cta-ghost:hover { border-color: var(--ruby); color: var(--ruby); background: transparent; }

/* Hamburger button (mobile only) */
.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--line-subtle);
  border-radius: 8px;
  position: fixed;
  top: calc(var(--header-h) / 2 - 22px);
  right: 16px;
  z-index: 500;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}
.hamburger[aria-expanded="true"] {
  background: var(--surface-dark);
  border-color: var(--surface-dark);
}
@media (max-width: 720px) {
  .hamburger { display: flex; }
  .main-nav { display: none !important; }
}
.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(340px, 88vw);
  background: #fff;
  z-index: 290;
  transform: translateX(100%);
  transition: transform 0.22s ease;
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-h) + 16px) 24px 24px;
  box-shadow: -8px 0 32px rgba(0,0,0,0.18);
  overflow-y: auto;
  visibility: hidden;
}
.mobile-drawer.is-open {
  transform: translateX(0);
  visibility: visible;
}
.mobile-drawer .drawer-close {
  position: absolute;
  top: calc(var(--header-h) - 28px);
  right: 16px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-band);
  border: 1px solid var(--line-subtle);
  border-radius: 10px;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0;
  z-index: 5;
}
.mobile-drawer .drawer-close:hover { background: var(--surface-dark); color: #fff; }
.mobile-drawer .drawer-close svg { width: 22px; height: 22px; }
.mobile-drawer ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mobile-drawer a {
  display: block;
  padding: 14px 12px;
  border-radius: 10px;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 16px;
  border-bottom: 1px solid var(--line-subtle);
}
.mobile-drawer a:hover { background: var(--bg-band); text-decoration: none; }
.mobile-drawer a.cta-mobile {
  background: var(--ruby);
  color: #fff;
  text-align: center;
  font-weight: 600;
  margin-top: 8px;
  border-bottom: none;
}
.drawer-scrim {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 280;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.drawer-scrim.is-open { opacity: 1; pointer-events: auto; }

body.is-drawer-open { overflow: hidden; }

/* ============================================
   Generic layout
   ============================================ */
main { flex: 1 0 auto; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 24px; }

/* Section spacing */
.section { padding: 44px 0; }
.section-tight { padding: 28px 0; }
.section-loose { padding: 64px 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.section-head h2 { margin: 0; }
.section-head p { margin: 6px 0 0; color: var(--text-secondary); font-size: 15px; }

/* Provider catalogue editorial blocks */
.content-section {
  background: var(--bg-card);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin: 16px 0;
}
.content-section h2 { margin: 0 0 10px; font-size: 19px; }
.content-section p { margin: 0 0 0.8em; color: var(--text-secondary); font-size: 15px; line-height: 1.65; }
.content-section p:last-child { margin-bottom: 0; }
.content-section .editorial-visual { margin-top: 16px; }

@media (max-width: 720px) {
  .section { padding: 32px 0; }
  .section-loose { padding: 44px 0; }
  .content-section { padding: 16px; }
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ruby);
  margin-bottom: 8px;
}

/* ============================================
   HOT shelf
   ============================================ */
.hot-shelf {
  padding: 28px 0 12px;
}
.hot-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 12px;
}
.hot-head h2,
.hot-head h1.hot-headline {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.hot-head h1.hot-headline {
  font-size: 26px;
  line-height: 1.2;
  flex: 1 1 auto;
  max-width: 760px;
}
.hot-head .hot-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ruby);
  background: rgba(180, 35, 24, 0.08);
  padding: 4px 10px;
  border-radius: 999px;
}
.hot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.hot-grid > li { display: flex; }
.hot-grid > li > .hot-card { width: 100%; }
@media (max-width: 980px) { .hot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .hot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }

.hot-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  min-height: 220px;
}
.hot-card:hover {
  transform: translateY(-2px);
  border-color: var(--ruby);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}
.hot-card .hot-art {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-band);
  display: grid;
  place-items: center;
}
.hot-card .hot-art img,
.hot-card .hot-art svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hot-card .hot-cat {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ruby);
}
.hot-card .hot-name {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.hot-card .hot-arrow {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ruby);
  margin-top: auto;
}
.hot-card .hot-arrow svg { width: 14px; height: 14px; }

/* ============================================
   YONO collection
   ============================================ */
.yono-collection {
  background: var(--bg-card);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-xl);
  padding: 24px;
  margin: 28px 0;
}
.yono-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.yono-head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
}
.yono-head .yono-sub {
  font-size: 13px;
  color: var(--text-muted);
}
.yono-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
@media (max-width: 780px) { .yono-grid { grid-template-columns: 1fr; } }
.yono-card {
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-lg);
  padding: 18px;
  background: var(--bg-card-2);
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
}
.yono-card:hover { border-color: var(--ruby); text-decoration: none; }
.yono-card .yono-icon {
  width: 44px;
  height: 44px;
  background: var(--ruby);
  color: #fff;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-weight: 800;
  font-size: 18px;
}
.yono-card h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}
.yono-card p {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}
.yono-card .yono-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--ruby);
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.yono-app-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px dashed var(--line-medium);
}
.yono-app-list .yono-chip {
  font-size: 12.5px;
  padding: 6px 10px;
  border: 1px solid var(--line-subtle);
  border-radius: 999px;
  color: var(--text-secondary);
  background: #fff;
  white-space: nowrap;
}

/* ============================================
   Catalogue: provider tabs, search, results
   ============================================ */
.catalogue-controls {
  background: var(--bg-card);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  margin: 24px 0;
  position: sticky;
  top: calc(var(--header-h) + 4px);
  z-index: 50;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  max-width: 100%;
}
.catalogue-controls .cc-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  max-width: 100%;
  min-width: 0;
}
.catalogue-search {
  flex: 1 1 280px;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card-2);
  border: 1px solid var(--line-subtle);
  border-radius: 10px;
  padding: 0 12px;
  height: 42px;
}
.catalogue-search input {
  flex: 1;
  border: 0;
  background: transparent;
  outline: none;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--text-primary);
  min-width: 0;
}
.catalogue-search svg { width: 18px; height: 18px; color: var(--text-muted); flex: 0 0 18px; }

.tablist {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
  padding: 4px 0 6px;
  -webkit-overflow-scrolling: touch;
}
.tablist::-webkit-scrollbar { height: 4px; }
.tablist::-webkit-scrollbar-thumb { background: var(--line-medium); border-radius: 4px; }

.tablist button,
.tablist a {
  flex: 0 0 auto;
  scroll-snap-align: start;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--bg-card-2);
  border: 1px solid var(--line-subtle);
  color: var(--text-primary);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
}
.tablist button:hover,
.tablist a:hover {
  border-color: var(--ruby);
  color: var(--ruby);
  text-decoration: none;
}
.tablist button[aria-selected="true"],
.tablist a[aria-current="true"] {
  background: var(--ruby);
  color: #fff;
  border-color: var(--ruby);
}
/* Fix WCAG AA: inactive tab .tab-count needs >= 4.5:1 against the off-white tab background.
   var(--bg-card-2) #fbfaf6 + rgba(15,15,20,0.08) tint = ~#e6e5e0 effective. text-secondary #4d4d57
   against that is ~7.5:1 which passes AA. The opacity:.8 below was reducing effective contrast. */
.tablist .tab-count {
  font-size: 11px;
  font-weight: 700;
  opacity: 1;
  color: var(--text-secondary);
}

.catalogue-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0 12px;
  font-size: 14px;
  color: var(--text-secondary);
}
.catalogue-meta strong {
  color: var(--text-primary);
  font-weight: 700;
}

/* Ranked inventory rows */
.app-inventory {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 8px;
}
.app-row {
  display: grid;
  grid-template-columns: 36px 80px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  text-decoration: none;
  color: var(--text-primary);
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.app-row:hover {
  border-color: var(--ruby);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}
.app-row .rank {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.app-row .row-art {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-band);
  border: 1px solid var(--line-subtle);
}
.app-row .row-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.app-row .row-info {
  min-width: 0;
}
.app-row .row-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.app-row .row-name a { color: inherit; }
.app-row .row-name a:hover { color: var(--ruby); }
.app-row .row-summary {
  font-weight: 400;
  font-size: 13.5px;
  color: var(--text-secondary);
  text-transform: none;
  letter-spacing: 0;
}
.app-row .row-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.app-row .row-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--text-muted);
}
.app-row .row-meta span { display: inline-flex; align-items: center; gap: 4px; }
.app-row .row-note {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-secondary);
  font-weight: 400;
  font-style: normal;
}
.app-row .row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-install {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ruby);
  color: #fff;
  border: 0;
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  font-family: inherit;
}
.btn-install:hover { background: var(--ruby-hover); color: #fff; text-decoration: none; }
.btn-install svg { width: 14px; height: 14px; }

.tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--bg-band);
  color: var(--text-secondary);
}
.tag-provider {
  background: rgba(180, 35, 24, 0.08);
  color: var(--ruby);
}
.tag-cat {
  background: var(--surface-dark);
  color: #fff;
}
.tag-hot { background: #fff7e6; color: #b8841a; }

/* Mobile collapsed row */
@media (max-width: 720px) {
  .app-row {
    grid-template-columns: 56px minmax(0, 1fr);
    grid-template-rows: auto auto;
    grid-template-areas:
      "art info"
      "art actions";
    gap: 8px 12px;
    padding: 12px;
  }
  .app-row .rank { display: none; }
  .app-row .row-art { grid-area: art; width: 56px; height: 56px; }
  .app-row .row-info { grid-area: info; }
  .app-row .row-actions { grid-area: actions; justify-content: stretch; }
  .app-row .row-actions .btn-install { width: 100%; justify-content: center; }
  .app-row .row-name { font-size: 14.5px; }
}

/* Progressive loading sentinel */
.load-more {
  margin: 24px auto;
  text-align: center;
}
.load-more button {
  background: var(--bg-card);
  border: 1px solid var(--line-medium);
  color: var(--text-primary);
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14.5px;
  cursor: pointer;
}
.load-more button:hover { border-color: var(--ruby); color: var(--ruby); }

/* ============================================
   Discovery entry points (Fantasy / Rummy / Sports)
   ============================================ */
.discovery-band {
  background: var(--bg-card);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-xl);
  padding: 24px;
  margin: 24px 0;
}
.discovery-band h2 { margin: 0 0 6px; font-size: 20px; }
.discovery-band .discovery-sub { color: var(--text-muted); font-size: 14px; margin: 0 0 16px; }
.discovery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 780px) { .discovery-grid { grid-template-columns: 1fr; } }

.app-discovery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}
.app-discovery-grid li {
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-lg);
  padding: 12px;
  background: var(--bg-card-2);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.app-discovery-grid li > a {
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
}
.app-discovery-grid li > a img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-md);
}
.app-discovery-grid li > span {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.45;
}
@media (max-width: 780px) {
  .app-discovery-grid { grid-template-columns: 1fr; }
}
.discovery-card {
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-lg);
  padding: 18px;
  background: var(--bg-card-2);
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.discovery-card:hover { border-color: var(--ruby); text-decoration: none; }
.discovery-card .dc-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--ruby);
  display: grid; place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 22px;
}
.discovery-card h3 { margin: 0; font-size: 16.5px; font-weight: 700; }
.discovery-card p { font-size: 13.5px; color: var(--text-secondary); margin: 0; line-height: 1.5; }
.discovery-card .dc-cta {
  font-size: 13px; font-weight: 600; color: var(--ruby);
  margin-top: auto;
}

/* Editorial visuals for Fantasy/Rummy/Sports */
.editorial-visual {
  width: 100%;
  aspect-ratio: 16 / 7;
  background: var(--surface-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 16px 0 0;
}
.editorial-visual img,
.editorial-visual svg { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ============================================
   Showcase band (promotion + support proof)
   ============================================ */
.showcase-band {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
  margin: 28px 0;
}
@media (max-width: 780px) { .showcase-band { grid-template-columns: 1fr; } }
.showcase-card {
  background: var(--bg-card);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-xl);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.showcase-card h3 { margin: 0; font-size: 18px; }
.showcase-card p { margin: 0; font-size: 14px; color: var(--text-secondary); }
.showcase-card.dark {
  background: var(--surface-dark);
  color: var(--text-on-dark);
  border-color: transparent;
}
.showcase-card.dark h3 { color: #fff; }
.showcase-card.dark p { color: var(--text-on-dark-muted); }
.showcase-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}
.stat-tile {
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 10px;
  text-align: center;
}
.stat-tile .num {
  display: block;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}
.stat-tile .lbl {
  display: block;
  font-size: 11px;
  color: var(--text-on-dark-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* ============================================
   News & FAQ blocks
   ============================================ */
.news-band {
  background: var(--bg-card);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-xl);
  padding: 24px;
  margin: 24px 0;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}
@media (max-width: 780px) { .news-grid { grid-template-columns: 1fr; } }
.news-card {
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  background: var(--bg-card-2);
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.news-card:hover { border-color: var(--ruby); text-decoration: none; }
.news-card .news-meta { font-size: 11.5px; color: var(--text-muted); display: flex; gap: 10px; flex-wrap: wrap; }
.news-card h3 { font-size: 16px; margin: 0; line-height: 1.3; }
.news-card p { font-size: 13.5px; color: var(--text-secondary); margin: 0; line-height: 1.5; }

/* FAQ */
.faq-band {
  background: var(--bg-card);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-xl);
  padding: 24px;
  margin: 24px 0;
}
.faq-list { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.faq-item {
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-card-2);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 600;
  font-size: 14.5px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  color: var(--ruby);
  font-size: 18px;
  font-weight: 700;
  flex: 0 0 12px;
  text-align: center;
  line-height: 1;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item .faq-answer {
  padding: 0 16px 14px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

/* ============================================
   Legal footer
   ============================================ */
.site-footer {
  background: var(--surface-dark);
  color: var(--text-on-dark);
  margin-top: 32px;
  padding: 40px 0 24px;
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 920px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
}
.footer-brand h3 {
  color: #fff;
  font-size: 16px;
  margin: 0 0 6px;
}
.footer-brand p {
  font-size: 13px;
  color: var(--text-on-dark-muted);
  margin: 0 0 12px;
  line-height: 1.55;
}
.footer-col h4 {
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-col a {
  color: var(--text-on-dark-muted);
  font-size: 13.5px;
}
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
  max-width: var(--container);
  margin: 24px auto 0;
  padding: 16px 24px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 12px;
  color: var(--text-on-dark-muted);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom a { color: var(--text-on-dark-muted); }
.footer-bottom a:hover { color: #fff; text-decoration: none; }
.cookie-btn {
  background: rgba(255,255,255,0.06);
  color: var(--text-on-dark);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
}
.cookie-btn:hover { background: rgba(255,255,255,0.12); }

/* Cookie consent panel */
.cookie-panel {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 400;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.cookie-panel.is-open { display: flex; }
.cookie-panel .cookie-card {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 24px;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}
.cookie-panel h2 { margin: 0 0 12px; font-size: 18px; }
.cookie-panel .cookie-toggle {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line-subtle);
  font-size: 14px;
}
.cookie-panel .cookie-toggle strong { display: block; margin-bottom: 2px; }
.cookie-panel .cookie-toggle small { color: var(--text-muted); display: block; }
.cookie-panel .switch {
  position: relative;
  width: 38px;
  height: 22px;
  background: var(--line-medium);
  border-radius: 999px;
  flex: 0 0 38px;
  transition: background 0.2s;
}
.cookie-panel .switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}
.cookie-panel .switch.is-on { background: var(--ruby); }
.cookie-panel .switch.is-on::after { transform: translateX(16px); }
.cookie-panel .cookie-buttons {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.cookie-panel .btn-primary, .cookie-panel .btn-secondary {
  flex: 1;
  border-radius: 10px;
  padding: 11px 14px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: inherit;
}
.cookie-panel .btn-primary { background: var(--ruby); color: #fff; border-color: var(--ruby); }
.cookie-panel .btn-primary:hover { background: var(--ruby-hover); }
.cookie-panel .btn-secondary { background: #fff; color: var(--text-primary); border-color: var(--line-medium); }
.cookie-panel .btn-secondary:hover { border-color: var(--ruby); color: var(--ruby); }

/* Mobile sticky CTA */
.mobile-sticky {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 220;
  background: #fff;
  border-top: 1px solid var(--line-medium);
  padding: 10px 16px;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.1);
}
.mobile-sticky .btn-install {
  width: 100%;
  justify-content: center;
  height: 44px;
  font-size: 15px;
  border-radius: 10px;
}
@media (max-width: 720px) {
  .mobile-sticky { display: block; }
  body { padding-bottom: 76px; }
}

/* ============================================
   Detail route styles
   ============================================ */
.detail-shell {
  padding-top: 24px;
  padding-bottom: 32px;
}
.crumbs {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.crumbs a { color: var(--text-secondary); }
.crumbs a:hover { color: var(--ruby); }
.crumbs .sep { color: var(--text-muted); }
code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.92em;
  background: var(--bg-card-2);
  padding: 1px 6px;
  border-radius: 6px;
  border: 1px solid var(--line-subtle);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.detail-grid {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
@media (max-width: 880px) { .detail-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 540px) {
  .detail-grid { gap: 16px; }
  .detail-art, .detail-body section { padding: 16px; }
}

.detail-art {
  background: var(--bg-card);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-xl);
  padding: 20px;
  position: sticky;
  top: calc(var(--header-h) + 12px);
}
.detail-art .art-img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-band);
  margin-bottom: 16px;
  border: 1px solid var(--line-subtle);
}
.detail-art .art-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail-art h1 {
  font-size: 22px;
  margin: 0 0 8px;
  line-height: 1.2;
}
.detail-art .detail-meta { font-size: 13px; color: var(--text-muted); margin: 0 0 12px; display: flex; gap: 8px; flex-wrap: wrap; }

.fact-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 16px;
}
.fact-tile {
  background: var(--bg-card-2);
  border-radius: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line-subtle);
}
.fact-tile .lbl {
  font-size: 10.5px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.fact-tile .val { font-size: 13.5px; font-weight: 700; color: var(--text-primary); }

.detail-body section {
  background: var(--bg-card);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
}
.detail-body h2 {
  font-size: 18px;
  margin: 0 0 10px;
  font-weight: 700;
}
.detail-body p, .detail-body li { font-size: 14.5px; color: var(--text-secondary); line-height: 1.65; }
.detail-body ol, .detail-body ul { padding-left: 1.3em; }

.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0;
  font-size: 13.5px;
}
.compare-table th, .compare-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-subtle);
}
.compare-table th {
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  background: var(--bg-card-2);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.related-card {
  background: var(--bg-card-2);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-md);
  padding: 10px;
  text-decoration: none;
  color: var(--text-primary);
  text-align: center;
}
.related-card:hover { border-color: var(--ruby); }
.related-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; margin-bottom: 8px; }
.related-card .rname { font-size: 12.5px; font-weight: 600; }

.detail-cta-block {
  background: var(--surface-dark);
  color: var(--text-on-dark);
  border-radius: var(--radius-xl);
  padding: 22px;
  margin-bottom: 16px;
  text-align: center;
}
.detail-cta-block h2,
.detail-cta-block h3 { color: #fff; margin: 0 0 6px; font-size: 18px; }
.detail-cta-block p { color: var(--text-on-dark-muted); font-size: 14px; margin: 0 0 14px; }
.detail-cta-block .btn-install { width: 100%; max-width: 280px; justify-content: center; height: 44px; }

.detail-cta-row { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.detail-cta-row .btn-install { width: 100%; max-width: 280px; justify-content: center; height: 44px; margin: 0 auto; }

.btn-install-secondary { background: var(--bg-card, #fff) !important; color: var(--ruby, #b42318) !important; border: 1px solid var(--line-medium, rgba(0,0,0,0.12)) !important; }
.btn-install-secondary:hover { background: var(--bg-card-hover, #f4f4f5) !important; color: var(--ruby, #b42318) !important; }

.provider-tabs-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 0;
  border-top: 1px solid var(--line-subtle, rgba(255,255,255,0.08));
  border-bottom: 1px solid var(--line-subtle, rgba(255,255,255,0.08));
  margin: 12px 0 16px;
}
.provider-tabs-rail button {
  font: inherit;
  background: var(--bg-card, #fff);
  color: var(--text-secondary, #555);
  border: 1px solid var(--line-medium, rgba(0,0,0,0.12));
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.provider-tabs-rail button[aria-selected="true"] { background: var(--ruby, #b42318); color: #fff; border-color: var(--ruby, #b42318); }
.provider-tabs-rail .tab-count { font-size: 11px; opacity: 0.85; }

.app-inventory-list {
  list-style: decimal inside;
  padding: 0;
  margin: 10px 0 8px;
  display: grid;
  gap: 6px;
}
.app-inventory-list li { padding: 8px 10px; background: var(--bg-card, #fff); border: 1px solid var(--line-subtle, rgba(0,0,0,0.08)); border-radius: 8px; font-size: 14px; }
.app-inventory-list a { color: var(--ruby, #b42318); font-weight: 600; text-decoration: none; }
.app-inventory-list a:hover { text-decoration: underline; }
.app-inventory-list .tag { margin-left: 6px; font-size: 11px; vertical-align: middle; }

.download-install-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 12px; }
.route-tile {
  background: var(--bg-card, #fff);
  border: 1px solid var(--line-subtle, rgba(0,0,0,0.08));
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.route-tile h3 { margin: 0; font-size: 17px; }
.route-tile p { color: var(--text-secondary); font-size: 13.5px; margin: 0; }
.route-tile .btn-install { align-self: flex-start; margin-top: 8px; }
.route-tile .route-target { font-size: 12px; color: var(--text-muted); margin-top: 6px; font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; }

@media (max-width: 600px) {
  .download-install-grid { grid-template-columns: 1fr; }
  .provider-tabs-rail { gap: 6px; }
  .provider-tabs-rail button { font-size: 12px; padding: 5px 10px; }
}

.compliance-note {
  font-size: 11.5px;
  color: var(--text-muted);
  margin: 8px 0 0;
}

/* ============================================
   News article
   ============================================ */
.article-shell {
  padding: 24px 0 32px;
}
.article-shell .article-meta { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.article-shell h1 { margin: 8px 0 12px; }
.article-shell .article-lede {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  border-left: 3px solid var(--ruby);
  padding-left: 14px;
  font-weight: 500;
}
.article-body {
  background: var(--bg-card);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.article-body p { font-size: 15.5px; color: var(--text-primary); line-height: 1.7; margin-bottom: 1em; }
.article-body h2 { font-size: 22px; margin: 28px 0 10px; }
.article-body h3 { font-size: 18px; margin: 22px 0 8px; }
.article-body ul, .article-body ol { font-size: 15.5px; color: var(--text-primary); line-height: 1.7; }
.article-body figure { margin: 24px 0; }
.article-body figure img { border-radius: var(--radius-md); border: 1px solid var(--line-subtle); }
.article-body figcaption { font-size: 12.5px; color: var(--text-muted); margin-top: 6px; }

/* ============================================
   Forms / support
   ============================================ */
.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 880px) { .support-grid { grid-template-columns: 1fr; } }
.support-form {
  background: var(--bg-card);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-xl);
  padding: 24px;
}
.support-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin: 12px 0 6px;
  color: var(--text-primary);
}
.support-form input,
.support-form textarea,
.support-form select {
  width: 100%;
  border: 1px solid var(--line-medium);
  border-radius: 8px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14.5px;
  background: #fff;
  color: var(--text-primary);
}
.support-form textarea { min-height: 130px; resize: vertical; }
.support-form button {
  margin-top: 16px;
  background: var(--ruby);
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 11px 18px;
  font-weight: 700;
  font-size: 14.5px;
  cursor: pointer;
}
.support-form button:hover { background: var(--ruby-hover); }
.support-side {
  background: var(--bg-card);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-xl);
  padding: 24px;
}
.support-side h2 { font-size: 18px; margin: 0 0 10px; }
.support-side .msg-stream {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 380px;
  overflow-y: auto;
  margin-top: 12px;
  padding-right: 4px;
}
.support-side .msg {
  background: var(--bg-card-2);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13.5px;
  color: var(--text-secondary);
  border: 1px solid var(--line-subtle);
}
.support-side .msg.self {
  background: rgba(180, 35, 24, 0.08);
  border-color: rgba(180, 35, 24, 0.18);
  color: var(--text-primary);
}
.support-side .msg .when { font-size: 11px; color: var(--text-muted); margin-top: 4px; display: block; }

/* ============================================
   Legal pages
   ============================================ */
.legal-shell {
  padding: 28px 0 32px;
}
.legal-shell h1 { margin-bottom: 8px; font-size: 32px; }
.legal-shell .legal-meta { color: var(--text-muted); font-size: 13px; margin-bottom: 20px; }
.legal-card {
  background: var(--bg-card);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.legal-card h2 { font-size: 19px; margin-top: 24px; }
.legal-card h2:first-child { margin-top: 0; }
.legal-card p, .legal-card li { font-size: 15px; color: var(--text-secondary); line-height: 1.7; }
.legal-card ul, .legal-card ol { padding-left: 1.4em; }

/* ============================================
   Misc helpers
   ============================================ */
.affiliate-disclosure {
  font-size: 12px;
  color: var(--text-muted);
  background: rgba(180, 35, 24, 0.04);
  border: 1px solid rgba(180, 35, 24, 0.16);
  border-radius: 8px;
  padding: 10px 12px;
  margin: 12px 0;
  line-height: 1.5;
}
.affiliate-disclosure strong { color: var(--ruby); }

.placeholder-art {
  background: linear-gradient(135deg, #1f1f24 0%, #2c2c34 100%);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 800;
  text-align: center;
}
.placeholder-art .pp-text {
  background: rgba(255,255,255,0.05);
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
}

.error-band {
  background: #fff7e6;
  border: 1px solid #f6cf6a;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin: 12px 0;
  font-size: 13.5px;
  color: #6b4a06;
}
.success-band {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin: 12px 0;
  font-size: 13.5px;
  color: #065f46;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
}

/* ARIA roles: tab focus, tablist separator, listitem spacing */
.tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid var(--line-subtle);
  padding-bottom: 10px;
  margin-bottom: 12px;
}
.tablist [role="tab"] {
  appearance: none;
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--line-medium);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font: 600 13.5px/1.2 var(--font-body);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.tablist [role="tab"][aria-selected="true"] {
  background: var(--ruby);
  color: #fff;
  border-color: var(--ruby);
}
.tablist [role="tab"]:hover { border-color: var(--ruby); color: var(--ruby); }
.tablist [role="tab"]:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}
.tablist [role="tab"] .tab-count {
  font-size: 11px;
  background: rgba(15,15,20,0.08);
  color: var(--text-secondary);
  padding: 1px 6px;
  border-radius: 999px;
  opacity: 1;
}
.tablist [role="tab"][aria-selected="true"] .tab-count {
  background: #ffffff;
  color: var(--ruby);
}

/* Ensure listitem anchors have semantic spacing */
[role="listitem"] { list-style: none; }

/* Color-only link fix: ensure prose links have a non-color differentiator */
.app-inventory .row-info a:not(.cta),
.discover-card a:not(.cta),
.news-grid a:not(.cta),
.support-band a:not(.cta),
.use-band a:not(.cta),
.shield-card a:not(.cta),
footer a:not(.cta),
.hot-card a {
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
.hot-card a { text-decoration: none; }
.hot-card { color: var(--text-primary); }
.app-inventory a:focus-visible,
.tablist [role="tab"]:focus-visible,
.cta:focus-visible,
.cta-mobile:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

/* Tabpanel: make sure panel boundary is invisible but clear */
[role="tabpanel"] { border: 0; padding: 0; }

/* YONO_POOL_ROWS_V1 */
:root{--discovery-art:64px;--discovery-action:220px;--discovery-row-gap:12px}.hot-shelf{padding:18px 0 8px}.hot-head{margin-bottom:9px}.hot-head h1.hot-headline{font-size:clamp(20px,2vw,25px);line-height:1.12;max-width:680px}.hot-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.hot-grid>li{display:block;min-width:0}.hot-card{min-height:78px;display:grid;grid-template-columns:56px minmax(0,1fr);grid-template-rows:auto auto;align-items:center;column-gap:10px;row-gap:2px;padding:7px;border-radius:12px}.hot-card .hot-art{grid-row:1/3;width:56px;height:56px;aspect-ratio:1;border-radius:9px}.hot-copy{display:flex;min-width:0;align-self:end;flex-direction:column;gap:1px}.hot-card .hot-name{overflow:hidden;font-size:14px;text-overflow:ellipsis;white-space:nowrap}.hot-desc{display:none}.hot-card .hot-arrow{align-self:start;justify-self:start;width:auto;margin:0;min-height:20px;padding:0;border:0;border-radius:0;font-size:11.5px}.yono-collection{padding:16px;margin:16px 0}.yono-head{margin-bottom:10px}.yono-app-list{display:flex;flex-direction:column;gap:6px;border:0;padding:0}.yono-row{min-height:78px;display:grid;grid-template-columns:var(--discovery-art) minmax(0,1fr) var(--discovery-action);gap:var(--discovery-row-gap);align-items:center;padding:6px 10px;border:1px solid var(--line-subtle);border-radius:12px;background:var(--bg-card-2)}.yono-logo{width:var(--discovery-art);height:var(--discovery-art);border-radius:10px;overflow:hidden;background:#fff;border:1px solid var(--line-subtle)}.yono-logo img{width:100%;height:100%;object-fit:contain}.yono-copy{min-width:0}.yono-kicker{font-size:9.5px;font-weight:800;text-transform:uppercase;letter-spacing:.1em;color:var(--ruby)}.yono-copy h3{margin:1px 0 2px;font-size:15px}.yono-copy h3 a{color:inherit;text-decoration:none}.yono-copy p{overflow:hidden;margin:0;color:var(--text-secondary);font-size:12.5px;text-overflow:ellipsis;white-space:nowrap}.yono-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px;align-items:center}.profile-link{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:0 9px;border:1px solid var(--line-subtle);border-radius:9px;color:var(--text-primary);font-size:12.5px;font-weight:700;text-decoration:none}.yono-actions .btn-install{min-height:40px;justify-content:center;padding:0 9px}.app-inventory{gap:6px}.app-row{min-height:78px;grid-template-columns:28px var(--discovery-art) minmax(0,1fr) var(--discovery-action);gap:var(--discovery-row-gap);padding:6px 10px;border-radius:12px}.app-row .row-art{width:var(--discovery-art);height:var(--discovery-art);border-radius:10px}.app-row .row-actions{width:var(--discovery-action);justify-content:flex-end}.profile-page{padding:36px 0 72px}.profile-lead,.detail-section,.detail-grid{margin-bottom:20px}.profile-identity{display:grid;grid-template-columns:136px minmax(0,1fr);gap:24px;align-items:center;padding:28px;border:1px solid var(--line-subtle);border-radius:24px;background:var(--bg-card)}.profile-identity>img{width:136px;height:136px;object-fit:contain;border-radius:24px}.profile-identity h1{margin:5px 0 8px;font-size:clamp(32px,5vw,54px)}.profile-actions{display:flex;gap:10px;margin-top:18px}.detail-section,.detail-grid>div{padding:24px;border:1px solid var(--line-subtle);border-radius:18px;background:var(--bg-card)}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.detail-section h2,.detail-grid h2{margin-top:0}.detail-section li,.detail-grid li{margin-bottom:8px}.notice{border-left:4px solid var(--ruby)}
@media(max-width:980px){.hot-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){:root{--discovery-art:52px;--discovery-action:auto;--discovery-row-gap:9px}.hot-shelf{padding-top:12px}.hot-head{align-items:flex-start}.hot-head .hot-label{white-space:nowrap}.hot-grid{grid-template-columns:1fr;gap:6px}.hot-card{min-height:64px;grid-template-columns:52px minmax(0,1fr);padding:5px 7px}.hot-card .hot-art{width:52px;height:52px}.yono-collection{padding:12px;margin:12px 0}.yono-row{min-height:64px;grid-template-columns:var(--discovery-art) minmax(0,1fr);padding:5px 7px}.yono-copy p{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.yono-actions{grid-column:1/-1;grid-template-columns:1fr 1fr}.app-row{min-height:64px;grid-template-columns:var(--discovery-art) minmax(0,1fr);grid-template-rows:auto auto;grid-template-areas:"art info" "art actions";padding:7px}.app-row .row-art{width:var(--discovery-art);height:var(--discovery-art)}.app-row .row-actions{width:auto}.profile-identity{grid-template-columns:80px minmax(0,1fr);padding:18px}.profile-identity>img{width:80px;height:80px}.profile-actions{grid-column:1/-1;flex-wrap:wrap}.detail-grid{grid-template-columns:1fr}}
/* Commercial product hubs: Promos, VIP and Code */
.commercial-shell { padding-top: 22px; padding-bottom: 44px; }
.commercial-intro { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:24px; align-items:end; margin:12px 0 22px; padding:24px; background:var(--bg-card); border:1px solid var(--line-subtle); border-radius:var(--radius-xl); }
.commercial-intro h1 { max-width:760px; font-size:clamp(28px,4vw,44px); margin:4px 0 10px; }
.commercial-intro p { max-width:760px; color:var(--text-secondary); margin:0; }
.commercial-intro .btn-install { white-space:nowrap; }
.promo-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin-bottom:18px; }
.promo-card { position:relative; padding:22px; background:var(--bg-card); border:1px solid var(--line-subtle); border-radius:var(--radius-lg); box-shadow:var(--shadow-sm); }
.promo-card h2 { font-size:21px; margin:14px 0 8px; }
.promo-card p { color:var(--text-secondary); min-height:52px; }
.commercial-status { display:inline-flex; align-items:center; min-height:28px; padding:5px 9px; border-radius:999px; color:var(--ruby-deep); background:rgba(180,35,24,.08); font-size:12px; font-weight:700; }
.commercial-link { display:inline-flex; min-height:44px; align-items:center; font-weight:700; }
.commercial-panel, .commercial-faq { background:var(--bg-card); border:1px solid var(--line-subtle); border-radius:var(--radius-xl); padding:24px; margin:18px 0; }
.commercial-panel h2, .commercial-faq h2 { font-size:24px; }
.snapshot-note { color:var(--text-muted); font-size:13px; }
.commercial-table-wrap { overflow-x:auto; border:1px solid var(--line-subtle); border-radius:var(--radius-md); }
.commercial-table { width:100%; min-width:720px; border-collapse:collapse; font-size:14px; }
.commercial-table th, .commercial-table td { padding:13px 14px; text-align:left; border-bottom:1px solid var(--line-subtle); white-space:nowrap; }
.commercial-table thead th { background:var(--bg-band); color:var(--text-secondary); font-size:12px; text-transform:uppercase; letter-spacing:.04em; }
.commercial-table tbody tr:last-child > * { border-bottom:0; }
.commercial-table tbody tr:hover { background:rgba(180,35,24,.025); }
.vip-table tbody th { color:var(--ruby); }
.source-note { margin:12px 0 0; color:var(--text-muted); font-size:13px; }
.step-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; list-style:none; padding:0; margin:16px 0 0; counter-reset:hubsteps; }
.step-grid li { counter-increment:hubsteps; padding:16px; border:1px solid var(--line-subtle); border-radius:var(--radius-md); background:var(--bg-card-2); }
.step-grid li::before { content:counter(hubsteps); display:grid; place-items:center; width:28px; height:28px; margin-bottom:12px; border-radius:8px; color:#fff; background:var(--ruby); font-weight:800; }
.step-grid strong, .step-grid span { display:block; }
.step-grid span { margin-top:6px; color:var(--text-secondary); font-size:13px; line-height:1.5; }
.vip-facts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.vip-facts article { padding:18px; border-radius:var(--radius-lg); background:var(--surface-dark); color:var(--text-on-dark); }
.vip-facts span, .vip-facts strong { display:block; }
.vip-facts span { color:var(--text-on-dark-muted); font-size:12px; text-transform:uppercase; letter-spacing:.05em; }
.vip-facts strong { margin-top:7px; font-size:16px; }
.commercial-faq details { border-top:1px solid var(--line-subtle); padding:14px 0; }
.commercial-faq details:first-of-type { margin-top:10px; }
.commercial-faq summary { cursor:pointer; font-weight:700; }
.commercial-faq details p { color:var(--text-secondary); margin:10px 0 0; max-width:78ch; }
.code-status { display:grid; grid-template-columns:64px minmax(0,1fr); gap:18px; padding:24px; border-radius:var(--radius-xl); background:var(--surface-dark); color:var(--text-on-dark); }
.code-status h2 { color:#fff; margin:4px 0 7px; }
.code-status p { color:var(--text-on-dark-muted); margin:0; max-width:78ch; }
.code-status-mark { display:grid; place-items:center; width:64px; height:64px; border-radius:16px; background:var(--ruby); color:#fff; font-size:30px; font-weight:800; }
.code-compare { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.code-compare article { padding:20px; border:1px solid var(--line-subtle); background:var(--bg-card); border-radius:var(--radius-lg); }
.code-compare h2 { font-size:19px; margin:12px 0 7px; }
.code-compare p { color:var(--text-secondary); margin:0; }
@media (max-width: 900px) { .commercial-intro { grid-template-columns:1fr; align-items:start; } .promo-grid { grid-template-columns:1fr; } .step-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .code-compare { grid-template-columns:1fr; } }
@media (max-width: 620px) { .commercial-shell { padding-top:14px; } .commercial-intro, .commercial-panel, .commercial-faq { padding:18px; } .commercial-intro .btn-install { width:100%; justify-content:center; } .step-grid, .vip-facts { grid-template-columns:1fr; } .code-status { grid-template-columns:48px minmax(0,1fr); padding:18px; } .code-status-mark { width:48px; height:48px; border-radius:12px; } }


/* Commercial utility navigation fix */
.utility-inner nav ul {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.utility-inner nav li { margin: 0; }
@media (max-width: 620px) {
  .utility-inner { min-height: var(--utility-h); height: auto; }
  .utility-nav-right, .utility-disclosure { display: none; }
  .utility-inner nav ul { gap: 10px; }
}


/* HOT mobile fixed four-column row */
@media (max-width: 700px) {
  .hot-grid,
  .hot-grid[data-layout="compact-four-column"] {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
    width: 100%;
    overflow: visible;
  }
  .hot-grid > li {
    display: flex;
    min-width: 0;
  }
  .hot-grid > li > .hot-card {
    width: 100%;
  }
  .hot-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
    min-height: 112px;
    padding: 5px;
    gap: 4px;
  }
  .hot-card .hot-art {
    display: block;
    width: 100%;
    height: 52px;
    min-height: 52px;
    border-radius: 7px;
    overflow: hidden;
  }
  .hot-card .hot-art img,
  .hot-card .hot-art svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .hot-copy {
    display: flex;
    min-width: 0;
    flex: 1;
    justify-content: flex-start;
    gap: 1px;
  }
  .hot-card .hot-cat {
    font-size: 7.5px;
    line-height: 1.15;
    letter-spacing: .06em;
  }
  .hot-card .hot-name {
    display: -webkit-box;
    overflow: hidden;
    min-height: 24px;
    font-size: 10px;
    line-height: 1.18;
    white-space: normal;
    text-overflow: clip;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  .hot-card .hot-arrow {
    display: none;
  }
}
@media (max-width: 360px) {
  .hot-grid,
  .hot-grid[data-layout="compact-four-column"] { gap: 3px; }
  .hot-card { padding: 4px; }
  .hot-card .hot-art { height: 46px; min-height: 46px; }
  .hot-card .hot-name { font-size: 9px; }
}
