/* d11-download.com — App Market V10 stylesheet
   Light surfaces, royal-blue pitch accent, compact app-catalogue rhythm. */

:root {
  --primary: #0B3D91;
  --primary-strong: #082b67;
  --accent: #1E88E5;
  --accent-strong: #1565c0;
  --ruby: #c8102e;
  --ruby-strong: #9b0c24;
  --ink: #0f1a2b;
  --ink-soft: #2b3a52;
  --muted: #5b6b86;
  --line: #d8def0;
  --line-soft: #e6ebf5;
  --bg: #f6f8fc;
  --bg-cool: #eef2f8;
  --surface: #ffffff;
  --surface-2: #f1f5fb;
  --positive: #0a7d3b;
  --warning: #b95300;
  --shadow-sm: 0 1px 2px rgba(15, 26, 43, 0.05);
  --shadow-md: 0 6px 18px rgba(15, 26, 43, 0.07);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --max: 1240px;
  --font-sans: "Manrope", "Noto Sans", "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Manrope", "Noto Sans Devanagari", "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--accent-strong); text-decoration: underline; }

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

/* ============== HEADER ============== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 64px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; color: var(--primary); }
.brand__mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.02em;
  box-shadow: var(--shadow-sm);
}
.brand__name { font-size: 18px; }
.brand__tag {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  margin-top: -2px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.header-search {
  flex: 1 1 auto;
  max-width: 380px;
  position: relative;
}
.header-search input {
  width: 100%;
  height: 40px;
  padding: 0 14px 0 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}
.header-search input:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.15);
}
.header-search__icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  height: 40px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--ruby);
  color: #fff;
  border-color: var(--ruby);
}
.btn--primary:hover { background: var(--ruby-strong); border-color: var(--ruby-strong); color: #fff; text-decoration: none; }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { background: var(--surface-2); text-decoration: none; }
.btn--accent {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn--accent:hover { background: var(--primary-strong); color: #fff; text-decoration: none; }

.hamburger {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.hamburger__bars {
  width: 18px;
  height: 12px;
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
}
.hamburger__bars span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
}

/* ============== NAV RAIL ============== */
.nav-rail {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.nav-rail__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-rail__inner::-webkit-scrollbar { display: none; }
.nav-rail a {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 14px;
  padding: 12px 12px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  text-decoration: none;
}
.nav-rail a:hover { color: var(--primary); text-decoration: none; }
.nav-rail a.is-active { color: var(--primary); border-bottom-color: var(--primary); }

/* ============== MOBILE DRAWER ============== */
.mobile-drawer {
  position: fixed;
  inset: 0;
  background: rgba(15, 26, 43, 0.45);
  display: none;
  z-index: 250;
}
.mobile-drawer.is-open { display: block; }
.mobile-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 86vw);
  background: #fff;
  padding: 20px 18px 100px;
  overflow-y: auto;
  box-shadow: -10px 0 30px rgba(15, 26, 43, 0.18);
  transform: translateX(100%);
  transition: transform .22s ease;
}
.mobile-drawer.is-open .mobile-drawer__panel { transform: translateX(0); }
.mobile-drawer__close {
  border: 1px solid var(--line);
  background: #fff;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-left: auto;
  display: block;
}
.mobile-drawer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 18px;
}
.mobile-drawer nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-drawer nav a {
  display: block;
  padding: 12px 12px;
  border-radius: 10px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.mobile-drawer nav a:hover { background: var(--surface-2); }
.mobile-drawer .btn { width: 100%; margin-top: 16px; height: 46px; }

/* ============== HERO STRIP (utility) ============== */
.utility-strip {
  background: var(--primary);
  color: #fff;
  padding: 10px 0;
  font-size: 13px;
}
.utility-strip__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.utility-strip__inner p { margin: 0; }
.utility-strip__link {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
}

/* ============== TITLES ============== */
.section { padding: 36px 0; }
.section--tight { padding: 22px 0; }
.section__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}
.section__heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.section__heading h2 {
  font-size: 22px;
  margin: 0;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.section__heading p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.section__heading a { font-size: 14px; font-weight: 700; }

/* ============== PROVIDER TABS ============== */
.tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 0 14px;
  scrollbar-width: thin;
}
.tab {
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: background-color .15s, border-color .15s, color .15s;
}
.tab:hover { color: var(--primary); border-color: var(--accent); }
.tab.is-active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.tabs-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 6px;
}
.tabs-meta strong { color: var(--ink); }
.tabs-meta small { color: var(--muted); font-size: 13px; }

/* ============== APP INVENTORY ============== */
.inv {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.inv__row {
  display: grid;
  grid-template-columns: 36px 64px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: border-color .15s, box-shadow .15s, transform .05s;
}
.inv__row:hover { border-color: var(--accent); box-shadow: var(--shadow-md); }
.inv__rank {
  font-weight: 800;
  color: var(--primary);
  font-size: 16px;
  text-align: center;
}
.inv__art {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface-2);
  flex-shrink: 0;
  border: 1px solid var(--line-soft);
}
.inv__art img {
  width: 100%; height: 100%; object-fit: cover;
}
.inv__meta { min-width: 0; }
.inv__name {
  display: block;
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 2px;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.inv__name:hover { color: var(--primary); text-decoration: none; }
.inv__ctx {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.inv__ctx .pill {
  background: var(--surface-2);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 2px 8px;
  font-weight: 600;
}
.inv__ctx .pill--kind {
  background: rgba(11, 61, 145, 0.08);
  color: var(--primary);
}
.inv__cta {
  appearance: none;
  background: var(--ruby);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 0 12px;
  height: 36px;
  font-weight: 700;
  font-size: 12px;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
}
.inv__cta:hover { background: var(--ruby-strong); color: #fff; text-decoration: none; }

.inv__skeleton {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 14px;
  height: 90px;
  position: relative;
  overflow: hidden;
}
.inv__skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(30,136,229,0.06), transparent);
  animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer { 0% { transform: translateX(-100%);} 100% { transform: translateX(100%);} }

.inv-empty {
  text-align: center;
  padding: 36px 16px;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  color: var(--muted);
}

.inv-loadmore {
  display: block;
  margin: 18px auto 0;
  padding: 0 18px;
  height: 40px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 700;
  font-family: inherit;
  color: var(--ink);
}
.inv-loadmore:hover { border-color: var(--accent); color: var(--primary); }

/* ============== HOMEPAGE BLOCKS ============== */
.title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 26px 0 8px;
}
.title-row h1 {
  font-size: 28px;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}
.title-row p { color: var(--muted); margin: 0; font-size: 14px; }

/* Category rail (one-line) */
.cat-rail {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 0 14px;
  scrollbar-width: thin;
}
.cat-rail a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}
.cat-rail a:hover { color: var(--primary); border-color: var(--accent); }

/* Quick actions row */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  padding: 8px 0 12px;
}
.quick-actions__card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 14px 16px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  transition: border-color .15s, transform .05s;
}
.quick-actions__card:hover { border-color: var(--accent); color: var(--ink); text-decoration: none; }
.quick-actions__card strong { font-size: 14px; }
.quick-actions__card span { color: var(--muted); font-size: 13px; }
.quick-actions__card .ico {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: rgba(11, 61, 145, 0.10);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 6px;
}

/* Featured rail */
.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 12px;
  overflow-x: auto;
  padding: 6px 0 12px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.rail__card {
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
}
.rail__card:hover { border-color: var(--accent); text-decoration: none; color: var(--ink); }
.rail__art {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--surface-2);
  overflow: hidden;
}
.rail__art img { width: 100%; height: 100%; object-fit: cover; }
.rail__body { padding: 10px 12px 12px; }
.rail__title {
  font-weight: 700;
  font-size: 14px;
  display: block;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rail__sub {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 6px;
  align-items: center;
}

/* News list */
.news-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.news-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
}
.news-card:hover { border-color: var(--accent); color: var(--ink); text-decoration: none; }
.news-card__art { aspect-ratio: 16 / 9; background: var(--surface-2); overflow: hidden; }
.news-card__art img { width: 100%; height: 100%; object-fit: cover; }
.news-card__body { padding: 12px 14px 14px; flex: 1; }
.news-card__meta {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.news-card__title {
  display: block;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 6px;
  color: var(--ink);
}
.news-card__excerpt {
  font-size: 13px;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 8px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}
.faq summary {
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-weight: 700;
  font-size: 18px;
  color: var(--muted);
  transition: transform .15s;
}
.faq details[open] summary::after { content: '\2212'; color: var(--primary); }
.faq details p { margin: 10px 0 0; color: var(--ink-soft); font-size: 14px; }

/* Legal footer */
.legal-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 26px 0 110px;
  margin-top: auto;
}
.legal-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}
.legal-footer h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 10px;
}
.legal-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.legal-footer a { color: var(--ink-soft); font-size: 14px; }
.legal-footer a:hover { color: var(--primary); }
.legal-footer p { font-size: 12px; color: var(--muted); margin: 0; }
.legal-footer__bottom {
  max-width: var(--max);
  margin: 20px auto 0;
  padding: 14px 20px 0;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
}
.legal-footer__bottom a { color: var(--muted); }

/* Sticky mobile CTA */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid var(--line);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  z-index: 180;
  display: none;
}
.sticky-cta__inner {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sticky-cta small {
  color: var(--muted);
  font-size: 12px;
  display: block;
}
.sticky-cta .btn { flex: 1 1 auto; height: 46px; }

/* Generic article layout */
.article {
  max-width: 760px;
  margin: 0 auto;
  padding: 30px 20px 60px;
}
.article h1 {
  font-size: 30px;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  color: var(--ink);
}
.article .meta { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.article p { font-size: 16px; color: var(--ink-soft); margin: 0 0 16px; }
.article h2 { font-size: 22px; margin: 28px 0 10px; color: var(--ink); }
.article h3 { font-size: 18px; margin: 20px 0 8px; color: var(--ink); }
.article ul, .article ol { color: var(--ink-soft); }
.article figure { margin: 18px 0; }
.article figure img { border-radius: var(--radius-md); border: 1px solid var(--line-soft); }
.article figcaption { color: var(--muted); font-size: 13px; margin-top: 6px; }
.article blockquote {
  border-left: 3px solid var(--primary);
  background: var(--surface-2);
  margin: 14px 0;
  padding: 10px 14px;
  border-radius: 0 8px 8px 0;
  color: var(--ink-soft);
  font-size: 15px;
}

/* App hub */
.apps-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 26px 0 24px;
}
.apps-hero__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 18px;
  align-items: start;
}
.apps-hero__icon {
  width: 92px;
  height: 92px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.02em;
  box-shadow: var(--shadow-md);
}
.apps-hero__body h1 { font-size: 26px; margin: 0 0 6px; color: var(--ink); }
.apps-hero__body p { color: var(--ink-soft); font-size: 14px; margin: 0 0 10px; }
.apps-hero__body ul { padding: 0; margin: 8px 0 12px 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.apps-hero__body ul li {
  background: var(--surface-2);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}
.apps-hero__body .cta-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* App hub (compact header without the icon tile) */
.apps-hub {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 26px 0 24px;
}
.apps-hub__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}
.apps-hub__inner h1 { font-size: 26px; margin: 0 0 6px; color: var(--ink); }
.apps-hub__inner p { color: var(--ink-soft); font-size: 14px; margin: 0 0 10px; }
.apps-hub__inner .cta-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.apps-hub__facts {
  padding: 0;
  margin: 8px 0 0 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.apps-hub__facts li {
  background: var(--surface-2);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}

.app-section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.app-section-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px;
}
.app-section-card h3 { margin: 0 0 6px; font-size: 14px; color: var(--ink); }
.app-section-card p { margin: 0; color: var(--ink-soft); font-size: 13px; }

.app-screens {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.app-screen {
  aspect-ratio: 9 / 16;
  background: var(--surface-2);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line-soft);
}
.app-screen img { width: 100%; height: 100%; object-fit: cover; }

.bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bullets li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--ink-soft);
  font-size: 14px;
}
.bullets li::before {
  content: '\2713';
  color: var(--primary);
  font-weight: 800;
  margin-top: 1px;
}

.callout {
  background: var(--surface-2);
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  padding: 12px 14px;
  margin: 14px 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.callout--warn { border-left-color: var(--warning); background: rgba(185, 83, 0, 0.06); }
.callout--info { border-left-color: var(--accent); }
.callout--ruby { border-left-color: var(--ruby); background: rgba(200, 16, 46, 0.06); }

/* Detail (game profile) page */
.detail-shell {
  max-width: 980px;
  margin: 0 auto;
  padding: 24px 20px 80px;
}
.breadcrumbs {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs span { color: var(--line); }

.detail-head {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px;
}
.detail-head__art {
  width: 120px;
  height: 120px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
}
.detail-head__art img { width: 100%; height: 100%; object-fit: cover; }
.detail-head h1 { margin: 0 0 6px; font-size: 24px; color: var(--ink); }
.detail-head__ctx { color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.detail-head__pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.detail-head__pills .pill {
  background: var(--surface-2);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
}
.detail-head__pills .pill--kind { background: rgba(11, 61, 145, 0.10); color: var(--primary); }

.fact-sheet {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-top: 16px;
}
.fact-sheet dl {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px 18px;
}
.fact-sheet dt { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 2px; }
.fact-sheet dd { margin: 0; font-size: 14px; color: var(--ink); font-weight: 600; }

.related-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}
.related-list a {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 13px;
}
.related-list a:hover { border-color: var(--accent); color: var(--ink); text-decoration: none; }
.related-list img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }

/* News index / article */
.news-index {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 20px 40px;
}
.news-index h1 { font-size: 28px; margin: 0 0 6px; }
.news-index .lede { color: var(--muted); font-size: 15px; margin: 0 0 20px; }

.article-cover {
  aspect-ratio: 16 / 9;
  background: var(--surface-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 16px;
}
.article-cover img { width: 100%; height: 100%; object-fit: cover; }

/* FAQ page */
.faq-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 28px 20px 80px;
}
.faq-page h1 { font-size: 28px; margin: 0 0 8px; }
.faq-page .lede { color: var(--muted); margin: 0 0 22px; }

/* Legal */
.legal-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 28px 20px 80px;
}
.legal-page h1 { font-size: 28px; margin: 0 0 8px; }
.legal-page h2 { font-size: 18px; margin: 22px 0 6px; }
.legal-page p { color: var(--ink-soft); font-size: 15px; margin: 0 0 12px; }
.legal-page ul { color: var(--ink-soft); }

/* Cookie consent */
.cookie-panel {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 88px;
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 14px 40px rgba(15, 26, 43, 0.18);
  padding: 16px;
  z-index: 220;
  display: none;
}
.cookie-panel.is-open { display: block; }
.cookie-panel h3 { margin: 0 0 6px; font-size: 16px; color: var(--ink); }
.cookie-panel p { margin: 0 0 10px; color: var(--ink-soft); font-size: 13px; }
.cookie-panel__opts { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.cookie-panel__opts label {
  display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink);
}
.cookie-panel__opts small { color: var(--muted); }
.cookie-panel__actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* 404 / generic */
.notice {
  max-width: 720px;
  margin: 60px auto;
  padding: 0 20px;
  text-align: center;
}
.notice h1 { font-size: 28px; margin-bottom: 8px; }
.notice p { color: var(--muted); margin-bottom: 14px; }

/* ============== RESPONSIVE ============== */
@media (max-width: 960px) {
  .header-search { display: none; }
  .nav-rail { display: none; }
  .hamburger { display: inline-flex; }
  .site-header__top { gap: 8px; }
}

@media (min-width: 961px) {
  .header-search { display: block; }
  .hamburger { display: none; }
}

@media (max-width: 600px) {
  .header-actions .btn--ghost { display: none; }
  .title-row h1 { font-size: 22px; }
  .apps-hero__inner { grid-template-columns: 64px 1fr; gap: 14px; }
  .apps-hero__icon { width: 64px; height: 64px; font-size: 22px; border-radius: 16px; }
  .apps-hero__body h1 { font-size: 22px; }
  .detail-head { grid-template-columns: 80px 1fr; gap: 12px; padding: 12px; }
  .detail-head__art { width: 80px; height: 80px; }
  .inv { grid-template-columns: 1fr; }
  .inv__row { grid-template-columns: 32px 56px 1fr auto; padding: 10px; }
  .inv__art { width: 56px; height: 56px; }
  .sticky-cta { display: block; }
  .legal-footer { padding-bottom: 130px; }
  .article h1 { font-size: 24px; }
}

/* Hide sticky CTA when desktop */
@media (min-width: 961px) { .sticky-cta { display: none; } }

/* Accessibility helpers */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Make sure grid items never overflow due to media */
.inv__meta, .inv__name, .inv__ctx { min-width: 0; }
.apps-hero__body, .detail-head, .article { min-width: 0; }

/* No horizontal page overflow */
html, body { overflow-x: hidden; }