/* applaser247.com — V10 app discovery marketplace stylesheet
   Light-first, lime-sport accent, horizontal-row inventory, mobile-first.

   Tokens
   === Backgrounds ===
   --bg:            #f7f8f8   page
   --surface:       #ffffff   card
   --surface-2:     #f4f7ef   lime-tinted card
   --surface-3:     #eef1ec   divider surface
   --ink:           #0e1a14   primary text
   --ink-2:         #3a4a40   secondary text
   --ink-3:         #6b7a70   tertiary text
   --line:          #d9e0d8   hairline
   --line-2:        #b9c4b7   border
   --accent:        #a8d63a   lime-sport
   --accent-ink:    #1f3305   lime text on accent
   --accent-2:      #3f8c2a   deep green hover
   --warn:          #c45a17   warm orange (score strip)
   --warn-ink:      #2a1108   warm orange text
   --inv:           #0e1a14   inverse surface (rare)
   --inv-ink:       #f7f8f8   inverse text
*/

:root {
  --bg: #f7f8f8;
  --surface: #ffffff;
  --surface-2: #f4f7ef;
  --surface-3: #eef1ec;
  --ink: #0e1a14;
  --ink-2: #3a4a40;
  --ink-3: #6b7a70;
  --line: #d9e0d8;
  --line-2: #b9c4b7;
  --accent: #a8d63a;
  --accent-ink: #1f3305;
  --accent-2: #3f8c2a;
  --warn: #c45a17;
  --warn-ink: #2a1108;
  --inv: #0e1a14;
  --inv-ink: #f7f8f8;

  --max-w: 1320px;
  --gap: 16px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 0 rgba(14, 26, 20, 0.04);
  --shadow-md: 0 8px 24px rgba(14, 26, 20, 0.06);
  --shadow-cta: 0 6px 18px rgba(63, 140, 42, 0.24);

  --row-h: 84px;
  --thumb: 72px;
  --thumb-lg: 104px;
}

* { box-sizing: border-box; }

html { overflow-x: hidden; max-width: 100%; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100dvh;
  overflow-x: hidden;
}

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

a { color: var(--accent-2); text-decoration: none; }
a:hover { color: var(--accent-ink); }

button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 { font-family: "Plus Jakarta Sans", system-ui, sans-serif; color: var(--ink); margin: 0; line-height: 1.18; letter-spacing: -0.012em; }
h1 { font-size: 32px; font-weight: 700; }
h2 { font-size: 22px; font-weight: 700; }
h3 { font-size: 17px; font-weight: 600; }
p { margin: 0 0 12px; color: var(--ink-2); }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 18px; }

/* ===== Sticky Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(247, 248, 248, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.utility-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-2);
}

.utility-bar .left, .utility-bar .right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.utility-bar .right { margin-left: auto; }

.utility-bar a { color: var(--ink-2); white-space: nowrap; }
.utility-bar a:hover { color: var(--ink); }
.utility-bar .pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 12px;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
}

.brand-row .logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #4b8a2a 0%, #a8d63a 60%, #cfe989 100%);
  display: grid;
  place-items: center;
  color: #0e1a14;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.02em;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.12);
}

.brand-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-tag {
  font-size: 11px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.brand-row .search {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--surface);
  min-width: 0;
}

.brand-row .search input {
  flex: 1 1 auto;
  border: 0;
  outline: none;
  background: transparent;
  font: inherit;
  color: var(--ink);
  min-width: 0;
  padding: 0;
}

.brand-row .search svg { color: var(--ink-3); flex: 0 0 auto; }

.brand-row .primary-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  border: 0;
  white-space: nowrap;
  box-shadow: var(--shadow-cta);
  text-decoration: none;
  font-size: 14px;
}
.brand-row .primary-cta:hover { background: var(--accent-2); color: #fff; }

.brand-row .ghost-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-2);
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
  white-space: nowrap;
}

.hamburger {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--surface);
  align-items: center;
  justify-content: center;
  padding: 0;
  position: relative;
  z-index: 100;
}
.hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
}
.hamburger span::before, .hamburger span::after {
  content: '';
  position: absolute;
  left: 0; width: 18px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
}
.hamburger span::before { top: -6px; }
.hamburger span::after  { top: 6px; }

/* ===== Navigation row ===== */
.nav-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0 14px;
  font-size: 14px;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-row::-webkit-scrollbar { display: none; }

.nav-row a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--ink-2);
  white-space: nowrap;
  font-weight: 500;
  text-decoration: none;
}
.nav-row a:hover { background: var(--surface-2); color: var(--ink); }
.nav-row a.is-active { background: var(--ink); color: var(--inv-ink); }

/* ===== Mobile drawer ===== */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  width: min(86vw, 360px);
  max-width: 100vw;
  background: var(--surface);
  z-index: 95;
  transform: translate3d(100%, 0, 0);
  transition: transform 0.24s ease, visibility 0.24s ease;
  border-left: 1px solid var(--line);
  padding: 18px 18px 100px;
  overflow-x: hidden;
  overflow-y: auto;
  visibility: hidden;
  pointer-events: none;
  overscroll-behavior: contain;
}
.mobile-drawer.is-open {
  transform: translate3d(0, 0, 0);
  visibility: visible;
  pointer-events: auto;
}
.mobile-drawer h3 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-3); margin: 18px 0 8px; }
.mobile-drawer a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.mobile-drawer a:hover { color: var(--accent-2); }
.mobile-drawer .close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--surface);
  display: grid;
  place-items: center;
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(14, 26, 20, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 90;
}
.drawer-overlay.is-open { opacity: 1; pointer-events: auto; }

/* ===== Page main ===== */
main { display: block; }

section { padding: 32px 0; }
section.section-tight { padding: 20px 0; }

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.section-head h2 { font-size: 22px; }
.section-head .lede { color: var(--ink-3); font-size: 14px; max-width: 60ch; }
.section-head .more { color: var(--accent-2); font-weight: 600; font-size: 14px; white-space: nowrap; }

/* ===== HOT shelf (4 working groups) ===== */
.hot-shelf {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  box-shadow: var(--shadow-sm);
}

.hot-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
  overflow: hidden;
}
.hot-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--accent);
}
.hot-card[data-hot-category="fantasy"]::before { background: #4b8a2a; }
.hot-card[data-hot-category="rummy"]::before { background: #c45a17; }
.hot-card[data-hot-category="sports"]::before { background: #2a6f8c; }
.hot-card[data-hot-category="games"]::before { background: #a8d63a; }

.hot-card .hot-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--ink);
}
.hot-card .hot-meta { min-width: 0; flex: 1 1 auto; }
.hot-card .hot-meta strong { display: block; font-size: 15px; font-weight: 700; }
.hot-card .hot-meta span { display: block; font-size: 12px; color: var(--ink-3); }
.hot-card .hot-arrow {
  margin-left: 4px;
  color: var(--ink-3);
  flex: 0 0 auto;
}

/* Featured artwork backdrop on each HOT card (visible hero of the named category) */
.hot-card .hot-card-art {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 12px;
  z-index: 0;
  pointer-events: none;
  display: none;
}
.hot-card.with-art .hot-card-art { display: block; }
.hot-card[data-hot-art].with-art::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.85) 50%, rgba(255,255,255,0.10) 100%);
  pointer-events: none;
  z-index: 0;
}
.hot-card > .hot-icon,
.hot-card > .hot-meta,
.hot-card > .hot-arrow { position: relative; z-index: 1; }
@media (max-width: 880px) {
  .hot-card.with-art .hot-card-art { opacity: 0.22; }
  .hot-card[data-hot-art].with-art::after {
    background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.96) 100%);
  }
}

/* ===== Provider tabs ===== */
.tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 6px;
}
.tabs button {
  background: transparent;
  border: 0;
  padding: 8px 12px;
  border-radius: 8px;
  font: inherit;
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
}
.tabs button:hover { background: var(--surface-2); color: var(--ink); }
.tabs button[aria-selected="true"] {
  background: var(--ink);
  color: var(--inv-ink);
}

.result-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  color: var(--ink-3);
  font-size: 14px;
  flex-wrap: wrap;
}
.result-bar .count strong { color: var(--ink); }

/* ===== Inventory rows ===== */
.inventory {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.app-row {
  display: grid;
  grid-template-columns: var(--thumb) minmax(160px, 1.6fr) minmax(120px, 1fr) minmax(120px, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  min-height: var(--row-h);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.app-row:hover { border-color: var(--line-2); box-shadow: var(--shadow-md); }

.app-row .thumb {
  width: var(--thumb);
  height: var(--thumb);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface-3);
  border: 1px solid var(--line);
  flex: 0 0 auto;
}
.app-row .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.app-row .ident { min-width: 0; }
.app-row .ident .name {
  display: block;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none;
}
.app-row .ident .name:hover { color: var(--accent-2); }
.app-row .ident .meta {
  display: block;
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 2px;
}

.app-row .field {
  font-size: 13px;
  color: var(--ink-2);
  min-width: 0;
}
.app-row .field .k { display: block; font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 2px; }
.app-row .field .v { color: var(--ink); font-weight: 600; word-break: break-word; }

.app-row .cta-cell {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}
.app-row .play-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  text-decoration: none;
  border: 0;
  white-space: nowrap;
  font-size: 13px;
  box-shadow: var(--shadow-cta);
}
.app-row .play-btn:hover { background: var(--accent-2); color: #fff; }

.app-row .ghost-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-2);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  font-size: 13px;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 36px 18px;
  color: var(--ink-3);
  border: 1px dashed var(--line-2);
  border-radius: 12px;
  background: var(--surface);
}

/* ===== Promotion / VIP band ===== */
.promotion-band {
  background: linear-gradient(95deg, #f4f7ef 0%, #eef1ec 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
}
.promotion-band h2 { font-size: 20px; margin-bottom: 4px; }
.promotion-band p { color: var(--ink-2); margin: 0; font-size: 14px; }
.promotion-band .termline { font-size: 12px; color: var(--ink-3); margin-top: 8px; }
.promotion-band .actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ===== Discovery entries ===== */
.discovery {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.discovery .photo {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--surface-3);
}
.discovery .photo img { width: 100%; height: 100%; object-fit: cover; }
.discovery h3 { font-size: 20px; margin-bottom: 6px; }
.discovery .lede { font-size: 14px; color: var(--ink-2); margin-bottom: 12px; }
.discovery .facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}
.discovery .facts .item {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--surface-2);
}
.discovery .facts .item .k { font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; }
.discovery .facts .item .v { font-size: 14px; font-weight: 700; color: var(--ink); }

/* ===== News cards ===== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.news-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--ink);
}
.news-card .photo { aspect-ratio: 16 / 9; background: var(--surface-3); }
.news-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.news-card .body { padding: 14px 16px 18px; }
.news-card .body time { font-size: 12px; color: var(--ink-3); }
.news-card .body h3 { font-size: 17px; margin: 6px 0 6px; line-height: 1.25; }
.news-card .body p { font-size: 14px; color: var(--ink-2); margin: 0; }
.news-card:hover { border-color: var(--line-2); }

/* ===== FAQ ===== */
.faq {
  display: grid;
  gap: 8px;
}
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 16px;
  box-shadow: var(--shadow-sm);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 0;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-size: 22px;
  font-weight: 400;
  color: var(--ink-3);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { content: '–'; }
.faq .answer { padding: 0 0 14px; color: var(--ink-2); font-size: 14px; }

/* ===== Footer ===== */
.site-footer {
  background: var(--inv);
  color: var(--inv-ink);
  padding: 40px 0 24px;
  margin-top: 32px;
}
.site-footer .grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
.site-footer h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #c7d3c2;
  margin-bottom: 12px;
  font-weight: 700;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 8px; }
.site-footer a { color: #d4dccf; font-size: 14px; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .brand { color: #fff; font-weight: 700; font-size: 18px; }
.site-footer .desc { color: #9aa799; font-size: 13px; margin-top: 8px; max-width: 36ch; }

.site-footer .legal {
  border-top: 1px solid #1f2a23;
  padding-top: 18px;
  font-size: 12px;
  color: #9aa799;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
}
.site-footer .legal-links { display: flex; flex-wrap: wrap; gap: 14px; }
.site-footer .legal-links a { color: #c7d3c2; }
.site-footer .disclosure { max-width: 100%; color: #9aa799; font-size: 11px; line-height: 1.5; }

/* ===== Mobile sticky CTA ===== */
.mobile-sticky-cta {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  background: rgba(247, 248, 248, 0.96);
  backdrop-filter: saturate(140%) blur(8px);
  border-top: 1px solid var(--line);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
}
.mobile-sticky-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  box-shadow: var(--shadow-cta);
}
.mobile-sticky-cta a:hover { background: var(--accent-2); color: #fff; }

/* ===== Modal/lightbox ===== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(14, 26, 20, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 110;
  padding: 18px;
}
.modal.is-open { display: flex; }
.modal-panel {
  background: var(--surface);
  border-radius: var(--radius);
  max-width: 480px;
  width: 100%;
  padding: 22px;
  box-shadow: var(--shadow-md);
}
.modal-panel h3 { font-size: 18px; margin-bottom: 8px; }
.modal-panel p { font-size: 14px; color: var(--ink-2); }
.modal-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.modal-actions .btn-accept { background: var(--accent); color: var(--accent-ink); border: 0; padding: 10px 16px; border-radius: 10px; font-weight: 700; cursor: pointer; }
.modal-actions .btn-reject { background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); padding: 10px 16px; border-radius: 10px; font-weight: 600; cursor: pointer; }

/* ===== Cookie banner ===== */
.cookie-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 78px;
  z-index: 75;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 16px;
  display: none;
  box-shadow: var(--shadow-md);
  max-width: 480px;
  margin: 0 auto;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { font-size: 13px; color: var(--ink-2); margin: 0 0 10px; }
.cookie-banner .row { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie-banner button { padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font-weight: 600; cursor: pointer; font-size: 13px; }
.cookie-banner .primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* ===== Article / page content ===== */
.page-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 18px 48px;
}
.page-content h1 { font-size: 32px; margin-bottom: 8px; }
.page-content .meta { color: var(--ink-3); font-size: 14px; margin-bottom: 18px; }
.page-content h2 { font-size: 22px; margin: 28px 0 10px; }
.page-content h3 { font-size: 17px; margin: 22px 0 8px; }
.page-content p, .page-content li { color: var(--ink-2); font-size: 16px; line-height: 1.65; }
.page-content ul, .page-content ol { padding-left: 20px; }
.page-content img { border-radius: 12px; margin: 18px 0; }
.page-content .callout {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 18px 0;
  font-size: 14px;
  color: var(--ink-2);
}
.page-content .breadcrumb { font-size: 13px; color: var(--ink-3); margin-bottom: 14px; }
.page-content .breadcrumb a { color: var(--ink-3); text-decoration: none; }
.page-content .breadcrumb a:hover { color: var(--ink); }

.page-content .article-hero {
  aspect-ratio: 16 / 9;
  background: var(--surface-3);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 18px;
}
.page-content .article-hero img { width: 100%; height: 100%; object-fit: cover; margin: 0; }

/* ===== Detail page (games) ===== */
.detail-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 28px;
  margin-top: 18px;
  align-items: start;
}
.detail-hero {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}
.detail-hero img { width: 100%; height: 100%; object-fit: cover; }
.detail-body p { font-size: 15px; }
.detail-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 22px;
}
.detail-specs .item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
}
.detail-specs .item .k { font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; }
.detail-specs .item .v { font-size: 15px; color: var(--ink); font-weight: 700; }

.related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.related-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
}
.related-card .thumb { aspect-ratio: 1 / 1; background: var(--surface-3); }
.related-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.related-card .meta { padding: 10px 12px; font-size: 13px; font-weight: 600; }

/* ===== Apps page ===== */
.apps-hero {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  margin-top: 18px;
  align-items: center;
}
.apps-hero .app-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  background: linear-gradient(135deg, #4b8a2a 0%, #a8d63a 60%, #cfe989 100%);
  display: grid;
  place-items: center;
  color: #0e1a14;
  font-weight: 800;
  font-size: 36px;
  box-shadow: 0 8px 24px rgba(63, 140, 42, 0.24);
  margin-bottom: 14px;
}
.apps-hero h1 { font-size: 26px; margin-bottom: 6px; }
.apps-hero .sub { color: var(--ink-2); font-size: 14px; margin-bottom: 14px; }

.kv-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 14px 0;
}
.kv-list .item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
}
.kv-list .item .k { font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; }
.kv-list .item .v { font-weight: 700; color: var(--ink); }

.apps-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.apps-rail img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; }

/* ===== Misc ===== */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.score-strip {
  background: var(--inv);
  color: var(--inv-ink);
  border-radius: var(--radius);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 14px;
  font-size: 14px;
}
.score-strip .badge {
  background: var(--warn);
  color: var(--warn-ink);
  border-radius: 999px;
  padding: 4px 10px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.score-strip .sep { color: #4a5a4f; }
.score-strip strong { color: #fff; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .site-footer .grid { grid-template-columns: 1fr 1fr; }
  .apps-hero { grid-template-columns: 1fr; }
  .discovery { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 880px) {
  .utility-bar .left { display: none; }
  .nav-row { display: none; }
  .hamburger { display: inline-flex; }
  .brand-row .ghost-cta { display: none; }
  .app-row { grid-template-columns: 64px 1fr auto; }

  .app-row .thumb { width: 64px; height: 64px; }
  .app-row .field { display: none; }
  .app-row .cta-cell { gap: 6px; }
  .app-row .ghost-btn { display: none; }
  .app-row .play-btn { padding: 9px 12px; font-size: 12px; }

  .hot-shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .promotion-band { grid-template-columns: 1fr; }
  .apps-rail { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .hot-shelf { grid-template-columns: 1fr 1fr; }
  .hot-card { padding: 10px; }
  .hot-card .hot-icon { width: 44px; height: 44px; }
  .hot-card .hot-meta strong { font-size: 14px; }
  .hot-card .hot-meta span { font-size: 11px; }
  .site-footer .grid { grid-template-columns: 1fr; }
  .mobile-sticky-cta { display: block; }
  body.has-mobile-cta { padding-bottom: 80px; }
  .cookie-banner { bottom: 86px; }
  .apps-hero { padding: 18px; }
  .apps-hero .app-icon { width: 72px; height: 72px; font-size: 28px; }
  .apps-hero h1 { font-size: 22px; }
}

@media (max-width: 380px) {
  .container { padding: 0 12px; }
  .brand-row .search { padding: 8px 12px; }
  .brand-row .primary-cta { padding: 9px 14px; font-size: 13px; }
  .brand-name { font-size: 15px; }
  .hot-shelf { grid-template-columns: 1fr; }
  .app-row { padding: 10px; gap: 10px; }
}

/* ===== Hidden helper for HTMl buttons without breaking contrast ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 18px;
  background: var(--accent);
  color: var(--accent-ink);
  border: 0;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  font-size: 14px;
  cursor: pointer;
  box-shadow: var(--shadow-cta);
}
.btn-primary:hover { background: var(--accent-2); color: #fff; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 16px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
  cursor: pointer;
}
.btn-secondary:hover { background: var(--surface-2); }

/* ===== Visually hidden focusable ===== */
.focus-only:not(:focus):not(:active) { position: absolute; width: 1px; height: 1px; margin: -1px; border: 0; padding: 0; overflow: hidden; clip: rect(0 0 0 0); }

/* ===== Print ===== */
@media print {
  .site-header, .mobile-sticky-cta, .cookie-banner, .nav-row, .utility-bar, .site-footer { display: none; }
  body { background: #fff; color: #000; }
}


/* ===== Completion patches v15 ===== */
.app-row { display:grid; grid-template-columns: var(--thumb) minmax(0,1fr) auto auto auto; gap:14px; align-items:center; padding:12px 14px; background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); min-width:0; text-decoration:none; color:inherit; }
.app-row .ident { display:flex; flex-direction:column; gap:2px; min-width:0; text-decoration:none; color:inherit; }
.app-row .ident .name { font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.app-row .ident .meta { color:var(--ink-3); font-size:13px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.app-row .thumb { width:var(--thumb); height:var(--thumb); border-radius:12px; overflow:hidden; flex:0 0 auto; }
.app-row .thumb img { width:100%; height:100%; object-fit:cover; }
.app-row .play-btn, a.play-btn { display:inline-flex; align-items:center; justify-content:center; padding:10px 14px; border-radius:10px; background:var(--accent); color:var(--accent-ink); font-weight:700; font-size:13px; text-decoration:none; white-space:nowrap; box-shadow:var(--shadow-cta); }
.app-row .ghost-btn, a.ghost-btn { display:inline-flex; align-items:center; justify-content:center; padding:9px 12px; border-radius:10px; border:1px solid var(--line-2); background:var(--surface); color:var(--ink); font-weight:600; font-size:12px; text-decoration:none; white-space:nowrap; }
.cta-row { display:flex; flex-wrap:wrap; gap:10px; margin:18px 0 28px; }
.content-block { background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:22px; margin:0 0 16px; }
.content-block h2 { font-family:"IBM Plex Serif", serif; font-size:1.35rem; margin:0 0 12px; letter-spacing:-0.01em; }
.content-block p { color:var(--ink-2); margin:0 0 12px; }
.content-block p:last-child { margin-bottom:0; }
.page-content { max-width:920px; margin:0 auto; padding:24px 16px 48px; }
.page-content .lede { font-size:1.05rem; color:var(--ink-2); }
.breadcrumb { font-size:13px; color:var(--ink-3); margin-bottom:12px; }
.breadcrumb a { color:var(--ink-2); }
.faq-list details { border:1px solid var(--line); border-radius:12px; padding:12px 14px; background:#fff; margin:0 0 10px; }
.faq-list summary { cursor:pointer; font-weight:700; }
.faq-list .answer { margin-top:8px; color:var(--ink-2); }
.footer-bottom { margin-top:28px; padding-top:16px; border-top:1px solid var(--line); color:var(--ink-3); font-size:13px; }
.footer-bottom .tiny { font-size:12px; }
button.linkish, .cookie-settings-btn { background:none; border:0; padding:0; color:var(--accent-2); font:inherit; font-weight:600; cursor:pointer; text-decoration:underline; text-underline-offset:2px; }
.sports-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.sports-card { background:var(--surface); border:1px solid var(--line); border-radius:14px; padding:16px; min-width:0; }
.sports-card h3 { margin:0 0 8px; font-size:1.05rem; }
.discovery-split { display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr); gap:18px; align-items:center; margin:18px 0; }
.discovery-split img { width:100%; border-radius:14px; aspect-ratio:16/9; object-fit:cover; }
.steps { counter-reset: step; display:grid; gap:12px; }
.steps .step { display:grid; grid-template-columns:36px 1fr; gap:12px; align-items:start; background:var(--surface-2); border-radius:12px; padding:14px; }
.steps .step::before { counter-increment: step; content: counter(step); width:36px; height:36px; border-radius:10px; background:var(--accent); color:var(--accent-ink); display:flex; align-items:center; justify-content:center; font-weight:800; }
.legal-note { font-size:13px; color:var(--ink-3); }
table.simple { width:100%; border-collapse:collapse; font-size:14px; }
table.simple th, table.simple td { border:1px solid var(--line); padding:10px; text-align:left; vertical-align:top; }
table.simple th { background:var(--surface-2); }
@media (max-width:880px){
  .app-row { grid-template-columns: 64px minmax(0,1fr) auto; }
  .app-row .field { display:none; }
  .app-row .ghost-btn { display:none; }
  .sports-grid, .discovery-split { grid-template-columns:1fr; }
}


/* tabs scroll patch */
.tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  padding-bottom: 4px;
  overscroll-behavior-x: contain;
}
.tabs [role="tab"], .tabs button {
  flex: 0 0 auto;
  white-space: nowrap;
}
.score-strip {
  overflow-x: auto;
  max-width: 100%;
  white-space: nowrap;
}
.section-tight { padding-top: 10px !important; padding-bottom: 10px !important; }
.page-home .section-head { margin-bottom: 10px; }
.page-home .section-head h2 { font-size: 1.35rem; margin: 0 0 4px; }
.page-home .section-head .lede { margin: 0; font-size: 0.95rem; }
.page-home .result-bar { margin: 8px 0 10px; }
.page-home .inventory { gap: 8px; }
.page-home .app-row { padding: 10px 12px; }
@media (min-width: 1024px) {
  .page-home .hot-shelf { margin-bottom: 8px; }
  .page-home .tabs { margin-bottom: 6px; }
}


/* ===== Above-fold density for app marketplace ===== */
.page-home .utility-bar { display: none; }
.page-home .brand-row { padding: 6px 0; gap: 8px; min-height: 0; }
.page-home .brand-tag { display: none; }
.page-home .nav-row { padding: 2px 0 6px; gap: 2px; }
.page-home .nav-row a { padding: 5px 9px; font-size: 12.5px; }
.page-home .score-strip { margin: 6px 0 4px; padding: 6px 10px; font-size: 12px; border-radius: 10px; }
.page-home .hot-shelf { gap: 8px; margin: 0 0 6px; }
.page-home .hot-card { padding: 8px 10px; gap: 8px; }
.page-home .hot-card .hot-icon { width: 40px; height: 40px; border-radius: 8px; }
.page-home .hot-card .hot-meta strong { font-size: 13px; }
.page-home .hot-card .hot-meta span { display: none; }
.page-home .hot-card .hot-arrow { display: none; }
.page-home .section-head { margin: 0 0 6px; }
.page-home .section-head h2 { font-size: 1.05rem !important; line-height: 1.2; margin: 0; }
.page-home .section-head .lede { display: none; }
.page-home .tabs { margin: 0 0 4px; gap: 6px; }
.page-home .tabs button, .page-home .tabs [role="tab"] { padding: 6px 10px; font-size: 12px; border-radius: 999px; }
.page-home .result-bar { margin: 0 0 6px; font-size: 12px; }
.page-home .inventory { display: grid; gap: 5px; }
.page-home .app-row { padding: 6px 8px; min-height: 64px; gap: 10px; border-radius: 12px; }
.page-home .app-row .thumb { width: 64px; height: 64px; border-radius: 10px; }
.page-home .app-row .thumb img, .page-home .app-row a.thumb img { width: 64px; height: 64px; object-fit: cover; }
.page-home .app-row .name { font-size: 14px; }
.page-home .app-row .meta { font-size: 12px; }
.page-home .app-row .play-btn, .page-home a.play-btn { padding: 7px 11px; font-size: 12px; }
.page-home .app-row .ghost-btn, .page-home a.ghost-btn { padding: 6px 9px; font-size: 11px; }
.page-home .container.section-tight { padding-top: 4px !important; padding-bottom: 4px !important; }
.page-home main > .container:first-child { padding-top: 4px !important; }
.page-home .site-header .container { padding-top: 0; padding-bottom: 0; }
@media (max-width: 880px) {
  .page-home .utility-bar { display: none; }
  .page-home .hot-card .hot-meta span { display: block; font-size: 11px; }
}
