/* Yono Games Hub — compiled stylesheet. Source of truth for tokens + layout. */
:root { --font-sans: "Plus Jakarta Sans"; --font-deva: "Noto Sans Devanagari"; }
body.admin-bar .appbar { top: 32px; }
@media screen and (max-width: 782px) { body.admin-bar .appbar { top: 46px; } }

/* ============================================================
   Yono Games Hub — app-store shell
   Light "trusted store" theme. Everything lives in a phone-width
   column so the site reads as a native app listing.
   ============================================================ */

:root {
  --ink: #101a29;
  --ink-2: #48566a;
  --ink-3: #7d8a9c;
  --paper: #eef1f6;
  --card: #ffffff;
  --line: #e4e8ef;
  --line-2: #eef1f5;

  --brand: #0c7a4c;
  --brand-press: #095e3a;
  --brand-tint: #e6f3ec;
  --brand-ink: #0a5a39;

  --gold: #e2a013;
  --danger: #b23b2a;
  --danger-tint: #fbecea;

  --col: 480px;
  --bar: 56px;
  --tabbar: 64px;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 22px;
  --shadow-card: 0 1px 2px rgba(16, 26, 41, 0.04), 0 6px 20px -12px rgba(16, 26, 41, 0.18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans), system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased;
}
[lang="hi"] { font-family: var(--font-deva), var(--font-sans), sans-serif; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
b, strong { font-weight: 700; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

.tnum { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-3); font-size: 0.82rem; }

/* ---------- shell ---------- */
.shell {
  max-width: var(--col);
  margin: 0 auto;
  min-height: 100vh;
  background: var(--card);
  position: relative;
  padding-bottom: calc(var(--tabbar) + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 540px) {
  body {
    background:
      radial-gradient(1200px 600px at 50% -10%, #dfe6f1, transparent),
      var(--paper);
    padding: 26px 0;
  }
  .shell {
    min-height: calc(100vh - 52px);
    border-radius: 30px;
    box-shadow: 0 0 0 1px var(--line), 0 40px 90px -30px rgba(16, 26, 41, 0.35);
    overflow: clip;
  }
}

/* ---------- app bar ---------- */
.appbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--bar);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line-2);
}
.appbar__back {
  width: 36px; height: 36px; flex: none;
  display: grid; place-items: center;
  border-radius: 999px; color: var(--ink);
  background: transparent; border: 0; cursor: pointer;
}
.appbar__back:hover { background: var(--paper); }
.appbar__logo { display: flex; align-items: center; gap: 8px; font-weight: 800; letter-spacing: -0.02em; font-size: 1.02rem; }
.appbar__logo .mark { width: 26px; height: 26px; flex: none; display: block; }
.appbar__title { display: block; min-width: 0; font-weight: 700; font-size: 1rem; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appbar__spacer { flex: 1; }
.appbar__act { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 999px; color: var(--ink-2); }
.appbar__act:hover { background: var(--paper); }

/* ---------- content rhythm ---------- */
.page { padding: 14px 16px 28px; }
.block { margin: 22px 0; }
.block:first-child { margin-top: 14px; }
.block > h2 {
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.block p { margin: 9px 0; color: var(--ink-2); }
.block p strong { color: var(--ink); }
.block ol, .block ul { margin: 10px 0 10px 18px; color: var(--ink-2); }
.block li { margin: 7px 0; }
.hr { height: 1px; background: var(--line-2); border: 0; margin: 22px 0; }

.eyebrow {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--brand-ink);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 44px; padding: 0 20px; border-radius: 999px;
  font-weight: 700; font-size: 0.95rem; border: 1px solid transparent; cursor: pointer;
  transition: transform 0.06s ease, background 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-press); }
.btn--ghost { background: var(--brand-tint); color: var(--brand-ink); }
.btn--ghost:hover { background: #d9ece1; }
.btn--block { display: flex; width: 100%; }

/* ---------- chips ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 6px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 34px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink-2);
  font-size: 0.84rem; font-weight: 600; display: inline-flex; align-items: center;
}
.chip[aria-current="true"], .chip:hover { border-color: var(--brand); color: var(--brand-ink); background: var(--brand-tint); }

/* ---------- search ---------- */
.search {
  display: flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 14px; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--line); color: var(--ink-3);
  font-size: 0.9rem;
}

/* ---------- app rows (list) ---------- */
.applist { display: flex; flex-direction: column; }
.approw {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 12px; align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-2);
}
.approw--ranked { grid-template-columns: 16px 52px 1fr auto; gap: 10px; }
.approw:last-child { border-bottom: 0; }
.approw__icon { width: 52px; height: 52px; border-radius: 13px; object-fit: cover; background: var(--paper); }
.approw__ini {
  width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(150deg, #17b06e, var(--brand-press)); color: #fff; font-weight: 800; font-size: 0.9rem;
}
.approw__main { min-width: 0; display: block; }
.approw__name { display: block; font-weight: 700; font-size: 0.94rem; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.approw__sub { color: var(--ink-3); font-size: 0.78rem; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.approw__sub .dot { width: 3px; height: 3px; border-radius: 999px; background: currentColor; }
.approw__cta {
  height: 34px; padding: 0 15px; border-radius: 999px; background: var(--brand-tint);
  color: var(--brand-ink); font-weight: 700; font-size: 0.8rem; display: inline-flex; align-items: center;
}
.approw:hover .approw__cta { background: var(--brand); color: #fff; }
.approw__rank {
  width: 18px; text-align: center; font-weight: 800; color: var(--ink-3); font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

/* ---------- horizontal rail (tiles) ---------- */
.rail { display: flex; gap: 12px; overflow-x: auto; padding: 2px 0 8px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.tile { flex: none; width: 116px; scroll-snap-align: start; position: relative; }

/* ---------- "new game" badge ---------- */
.badge-new {
  position: absolute; top: -3px; left: -3px; z-index: 1;
  background: var(--gold); color: #241a04;
  font-size: 0.62rem; font-weight: 800; letter-spacing: 0.03em;
  text-transform: uppercase; line-height: 1;
  padding: 3px 6px; border-radius: 7px;
  box-shadow: 0 2px 5px rgba(16, 26, 41, 0.28);
}
.badge-new--inline {
  position: static; display: inline-block; vertical-align: middle;
  margin-left: 6px; top: 0; left: 0; box-shadow: none;
}
.new-hero {
  background: linear-gradient(135deg, var(--brand-tint), var(--card));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 14px 16px;
  margin-bottom: 14px;
}
.new-hero p { color: var(--ink-2); font-size: 0.86rem; margin-top: 4px; }
.new-item__added { display: block; margin-top: 2px; padding: 0; font-size: 0.72rem; }
.tile__icon { width: 116px; height: 116px; border-radius: 22px; object-fit: cover; box-shadow: var(--shadow-card); background: var(--paper); }
.tile__ini {
  width: 116px; height: 116px; border-radius: 22px; display: grid; place-items: center;
  background: linear-gradient(150deg, #17b06e, var(--brand-press)); color: #fff; font-weight: 800; font-size: 1.3rem;
  box-shadow: var(--shadow-card);
}
.tile__name { display: block; font-weight: 700; font-size: 0.82rem; margin-top: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile__meta { display: block; color: var(--ink-3); font-size: 0.74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- featured card ---------- */
.featured {
  border-radius: var(--r-lg);
  padding: 18px;
  background: linear-gradient(155deg, #0f8a56, #0a5535);
  color: #fff;
  box-shadow: var(--shadow-card);
  display: grid; grid-template-columns: 66px 1fr; gap: 14px; align-items: center;
}
.featured__icon { width: 66px; height: 66px; border-radius: 17px; background: rgba(255,255,255,.16); }
.featured h3 { font-size: 1.05rem; letter-spacing: -0.01em; }
.featured p { color: rgba(255,255,255,.82); font-size: 0.8rem; margin-top: 2px; }
.featured .btn { margin-top: 10px; background: #fff; color: var(--brand-press); height: 38px; }

/* ============================================================
   App listing (detail page)
   ============================================================ */
.listing__top { display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: start; padding-top: 6px; }
.listing__icon { width: 72px; height: 72px; border-radius: 18px; box-shadow: var(--shadow-card); object-fit: cover; background: var(--paper); }
.listing__ini {
  width: 72px; height: 72px; border-radius: 18px; display: grid; place-items: center;
  background: linear-gradient(150deg, #17b06e, var(--brand-press)); color: #fff; font-weight: 800; font-size: 1.2rem;
  box-shadow: var(--shadow-card);
}
.listing__name { font-size: 1.32rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.listing__dev { color: var(--brand-ink); font-weight: 600; font-size: 0.86rem; margin-top: 3px; display: inline-block; }
.listing__tags { color: var(--ink-3); font-size: 0.76rem; margin-top: 3px; }

.statstrip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin: 16px 0 4px;
}
.statstrip > div {
  text-align: center; padding: 4px 2px;
  border-right: 1px solid var(--line);
}
.statstrip > div:last-child { border-right: 0; }
.statstrip b { display: block; font-weight: 800; font-size: 0.92rem; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.statstrip .ic { display: inline-block; width: 12px; height: 12px; vertical-align: -1px; }
.statstrip span { display: block; color: var(--ink-3); font-size: 0.66rem; margin-top: 3px; line-height: 1.3; }

.cta-row { display: flex; gap: 10px; margin: 14px 0 8px; }
.cta-row .btn--primary { flex: 1; }
.listing__notice {
  font-size: 0.74rem; color: var(--ink-3);
  display: flex; align-items: center; gap: 6px;
}
/* preview screenshots */
.shots { display: flex; gap: 12px; overflow-x: auto; padding: 4px 0 10px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.shots::-webkit-scrollbar { display: none; }
.shots svg { flex: none; border-radius: 18px; scroll-snap-align: start; box-shadow: var(--shadow-card); background: #0b1020; }
.shots--real img {
  flex: none; height: 340px; width: auto; border-radius: 18px; scroll-snap-align: start;
  box-shadow: var(--shadow-card); border: 1px solid var(--line); object-fit: cover;
}

/* app-detail two-pane layout (single column on phone/tablet) */
.listing-layout { display: block; }
.listing-rail__card { margin-bottom: 4px; }
.rail-facts { display: none; }

/* info cards (payments / safety) */
.infocards { display: grid; gap: 8px; }
.infocard {
  display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start;
  padding: 12px 13px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--card);
}
.infocard .ic { color: var(--brand); margin-top: 2px; }
.infocard b { font-size: 0.86rem; }
.infocard p { margin: 2px 0 0; font-size: 0.8rem; color: var(--ink-3); }

/* ratings histogram */
.ratings { display: grid; grid-template-columns: 92px 1fr; gap: 16px; align-items: center; }
.ratings__big { text-align: center; }
.ratings__big b { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.ratings__stars { color: var(--gold); font-size: 0.9rem; letter-spacing: 1px; }
.ratings__count { color: var(--ink-3); font-size: 0.74rem; margin-top: 2px; }
.hist { display: grid; gap: 5px; }
.hist__row { display: grid; grid-template-columns: 10px 1fr; gap: 8px; align-items: center; }
.hist__n { font-size: 0.72rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.hist__track { display: block; height: 7px; border-radius: 999px; background: var(--line); overflow: hidden; }
.hist__fill { display: block; height: 7px; background: var(--brand); border-radius: 999px; }

/* review cards */
.reviews { display: grid; gap: 10px; }
.review { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 13px; }
.review__head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.review__ini { width: 26px; height: 26px; border-radius: 999px; background: var(--paper); display: grid; place-items: center; font-size: 0.64rem; font-weight: 800; }
.review__name { font-size: 0.82rem; font-weight: 700; }
.review__stars { color: var(--gold); font-size: 0.68rem; margin-left: auto; letter-spacing: 1px; }
.review p { font-size: 0.84rem; color: var(--ink-2); margin: 0; }

/* callout */
.callout {
  border: 1px solid var(--line); border-left: 3px solid var(--brand);
  background: var(--brand-tint); border-radius: var(--r-sm);
  padding: 11px 13px; font-size: 0.84rem; color: var(--brand-ink);
}
.callout--warn { background: var(--danger-tint); border-left-color: var(--danger); color: #7f2c20; }

/* facts table */
.facts { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.facts th, .facts td { text-align: left; padding: 9px 0; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.facts th { color: var(--ink-3); font-weight: 500; width: 42%; padding-right: 10px; }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: 0; }

/* FAQ */
.faq-item { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 13px; margin: 8px 0; }
.faq-item summary { cursor: pointer; font-weight: 600; font-size: 0.88rem; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--ink-3); font-weight: 400; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin-top: 8px; font-size: 0.84rem; color: var(--ink-2); }

/* all-apps disclosure */
.all-apps { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 13px; }
.all-apps > summary { cursor: pointer; font-weight: 700; font-size: 0.9rem; list-style: none; }
.all-apps > summary::-webkit-details-marker { display: none; }
.all-apps__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin-top: 10px; }
.all-apps__item { display: flex; align-items: center; gap: 8px; padding: 7px 6px; border-radius: 8px; font-size: 0.8rem; }
.all-apps__item:hover { background: var(--paper); }
.all-apps__item img { width: 26px; height: 26px; border-radius: 7px; flex: none; }
.all-apps__ini { width: 26px; height: 26px; border-radius: 7px; background: var(--paper); display: grid; place-items: center; font-size: 0.56rem; font-weight: 800; flex: none; }
.all-apps__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.all-apps__bonus { color: var(--brand-ink); font-size: 0.7rem; flex: none; font-variant-numeric: tabular-nums; }

/* feature-list */
.feature-list { list-style: none; margin-left: 0; }
.feature-list li { padding-left: 22px; position: relative; color: var(--ink-2); }
.feature-list li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 6px; height: 6px; border-radius: 999px; background: var(--brand); }

/* breadcrumb (kept minimal, mostly for schema/context) */
.breadcrumb { font-size: 0.74rem; color: var(--ink-3); margin-bottom: 4px; }
.breadcrumb a:hover { color: var(--ink); }

/* ---------- guides ---------- */
.guide-list { display: grid; gap: 10px; }
.guide-row { border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: grid; gap: 4px; }
.guide-row:hover { border-color: var(--brand); }
.guide-row__title { font-weight: 700; font-size: 0.94rem; letter-spacing: -0.01em; }
.guide-row__meta { color: var(--ink-3); font-size: 0.74rem; }
.guide-row__desc { color: var(--ink-2); font-size: 0.83rem; }
.guide-body h2 { font-size: 1.02rem; margin: 22px 0 8px; letter-spacing: -0.01em; }
.guide-body p { margin: 10px 0; color: var(--ink-2); }
.guide-body ul, .guide-body ol { margin: 10px 0 10px 18px; color: var(--ink-2); }
.guide-body li { margin: 6px 0; }
.guide-body a { color: var(--brand-ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--brand-tint); text-underline-offset: 2px; }

/* ---------- comparison tables (guide bodies) ---------- */
.cmp-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 16px 0; border: 1px solid var(--line, #e4e8ef); border-radius: 12px; }
table.cmp { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 0.9rem; }
table.cmp th, table.cmp td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line, #eef1f5); white-space: nowrap; }
table.cmp thead th { position: sticky; top: 0; background: var(--surface, #fff); font-weight: 700; color: var(--ink, #101a29); }
table.cmp th[data-k] { cursor: pointer; user-select: none; }
table.cmp th[data-k]::after { content: " \2195"; opacity: 0.35; font-size: 0.8em; }
table.cmp th[aria-sort="ascending"]::after { content: " \2191"; opacity: 0.9; }
table.cmp th[aria-sort="descending"]::after { content: " \2193"; opacity: 0.9; }
table.cmp tbody tr:nth-child(even) { background: var(--tint, #f7f9fc); }
table.cmp tbody tr:hover { background: var(--brand-tint, #e8f5ee); }
table.cmp a { white-space: nowrap; }
table.cmp--vs th[scope="row"] { font-weight: 600; color: var(--ink-2, #48566a); background: var(--surface, #fff); }
.cmp-note { font-size: 0.8rem; color: var(--ink-3, #7d8a9c); margin: 6px 0 0; }

/* ---------- guide FAQ accordion ---------- */
.guide-faq { border: 1px solid var(--line, #e4e8ef); border-radius: 10px; padding: 4px 14px; margin: 8px 0; }
.guide-faq summary { cursor: pointer; font-weight: 600; padding: 8px 0; color: var(--ink, #101a29); }
.guide-faq[open] summary { border-bottom: 1px solid var(--line, #eef1f5); margin-bottom: 6px; }
.guide-faq > div { padding-bottom: 8px; }

/* ---------- sticky install (above tab bar, long pages) ---------- */
.sticky-dl {
  position: fixed; left: 50%; transform: translateX(-50%) translateY(140%);
  bottom: calc(var(--tabbar) + env(safe-area-inset-bottom, 0px));
  width: 100%; max-width: var(--col); z-index: 25;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px; background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px); border-top: 1px solid var(--line);
  transition: transform 0.22s ease;
}
.sticky-dl--visible { transform: translateX(-50%) translateY(0); }
.sticky-dl__id { min-width: 0; flex: 1; }
.sticky-dl__id { display: block; }
.sticky-dl__id b { font-size: 0.85rem; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-dl__id span { font-size: 0.72rem; color: var(--ink-3); display: block; }
.sticky-dl .btn { height: 40px; }

/* ---------- bottom tab bar ---------- */
.tabbar {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: 0; width: 100%; max-width: var(--col); z-index: 40;
  height: calc(var(--tabbar) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.4) blur(12px);
  border-top: 1px solid var(--line);
}
.tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--ink-3); font-size: 0.66rem; font-weight: 600;
}
.tab svg { width: 22px; height: 22px; }
.tab[aria-current="true"] { color: var(--brand); }
.tab[aria-current="true"] .tab__pill { background: var(--brand-tint); }
.tab__pill { padding: 3px 14px; border-radius: 999px; display: grid; place-items: center; transition: background 0.15s ease; }

/* ---------- footer (inside shell, above tab bar) ---------- */
.site-footer { border-top: 1px solid var(--line-2); margin-top: 26px; padding: 18px 16px 8px; }
.site-footer p { color: var(--ink-3); font-size: 0.76rem; margin: 7px 0; }

@media (prefers-reduced-motion: reduce) {
  .btn:active { transform: none; }
  .sticky-dl { transition: none; }
}

/* ============================================================
   Desktop (>= 1024px): drop the app shell, use a normal website.
   The app-store UI is intended for phone + tablet only.
   ============================================================ */
.appbar__nav { display: none; }
.appbar__logo--deskonly { display: none; }

@media (min-width: 1024px) {
  :root { --wrap: 1200px; }
  .appbar__logo--deskonly { display: flex; }
  body { background: var(--card); padding: 0; }

  .shell {
    max-width: none;
    min-height: 100vh;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    padding-bottom: 0;
  }

  .tabbar, .sticky-dl { display: none; }

  /* header: full-width bar, inner content constrained */
  .appbar {
    height: 68px;
    padding: 0 max(32px, calc((100vw - var(--wrap)) / 2 + 32px));
    gap: 28px;
    position: sticky;
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid var(--line);
  }
  .appbar__back, .appbar__title { display: none; }
  .appbar__logo { font-size: 1.06rem; }
  .appbar__logo .mark { width: 28px; height: 28px; }
  .appbar__nav { display: flex; gap: 26px; font-size: 0.9rem; font-weight: 600; }
  .appbar__nav a { color: var(--ink-2); padding: 4px 0; border-bottom: 2px solid transparent; }
  .appbar__nav a:hover { color: var(--ink); }
  .appbar__nav a[aria-current="true"] { color: var(--brand-ink); border-bottom-color: var(--brand); }

  .page {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 34px 32px 80px;
  }

  .block { margin: 34px 0; }
  .block > h2 { font-size: 1.28rem; }

  /* keep prose to a readable measure; let grids/rails run wide */
  .listing-main .block > p,
  .listing-main .block > ol,
  .listing-main .block > ul,
  .guide-body { max-width: 68ch; }

  /* ---- home / category grids ---- */
  .home-search-row .search { max-width: 640px; }
  .featured { grid-template-columns: 96px 1fr; padding: 26px 28px; align-items: center; gap: 20px; }
  .featured__icon { width: 96px; height: 96px; }
  .featured h3 { font-size: 1.3rem; }
  .featured p { font-size: 0.9rem; }

  .applist { display: grid; grid-template-columns: 1fr 1fr; column-gap: 36px; }
  .approw { border-bottom: 1px solid var(--line-2); padding: 13px 0; }
  .approw__icon, .approw__ini { width: 56px; height: 56px; }

  .rail .tile { width: 132px; }
  .rail .tile__icon, .rail .tile__ini { width: 132px; height: 132px; }

  .all-apps__grid { grid-template-columns: repeat(4, 1fr); }
  .guide-list { grid-template-columns: 1fr 1fr; }
  .guide-row { padding: 18px; }
  .guide-row__title { font-size: 1rem; }

  /* ---- app detail: sticky rail + main column ---- */
  .listing-layout {
    display: grid;
    grid-template-columns: 336px minmax(0, 1fr);
    gap: 48px;
    align-items: start;
    margin-top: 6px;
  }
  .listing-rail { position: sticky; top: 92px; }
  .listing-rail__card {
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 24px;
    background: var(--card);
    box-shadow: var(--shadow-card);
  }
  .listing-rail .listing__top {
    display: block;
    text-align: center;
    padding-top: 4px;
  }
  .listing-rail .listing__icon,
  .listing-rail .listing__ini {
    width: 96px; height: 96px; margin: 0 auto 14px; border-radius: 22px;
  }
  .listing-rail .listing__name { font-size: 1.5rem; line-height: 1.2; }
  .listing-rail .listing__dev { margin-top: 4px; }
  .listing-rail .listing__tags {
    margin-top: 8px; display: flex; flex-direction: column; align-items: center; gap: 4px;
  }
  .listing-rail .ratings__stars { font-size: 1rem; }
  .listing-rail .cta-row { flex-direction: column; margin: 18px 0 12px; }
  .listing-rail .cta-row .btn { width: 100%; height: 46px; }
  .listing-rail .listing__notice { justify-content: center; text-align: center; }

  .rail-facts {
    display: block; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-2);
  }
  .rail-facts > div {
    display: flex; justify-content: space-between; gap: 12px;
    padding: 7px 0; font-size: 0.85rem;
  }
  .rail-facts dt { color: var(--ink-3); }
  .rail-facts dd { font-weight: 600; text-align: right; }

  .listing-main .statstrip { margin-top: 0; }
  .listing-main .block:first-of-type { margin-top: 4px; }

  .shots svg { width: 190px; height: 384px; }
  .shots--real img { height: 384px; }

  .reviews { grid-template-columns: 1fr 1fr; }
  .infocards { grid-template-columns: 1fr 1fr; }
  .ratings { grid-template-columns: 120px 1fr; gap: 24px; }
  .ratings__big b { font-size: 3rem; }

  .site-footer { padding: 26px 32px 40px; max-width: var(--wrap); margin: 40px auto 0; }
  .breadcrumb { max-width: var(--wrap); }
}

@media (min-width: 1360px) {
  .listing-layout { grid-template-columns: 360px minmax(0, 1fr); gap: 60px; }
}
