:root {
  --text: #1f1f1f;
  --text-2: #3c4043;
  --muted: #5f6368;
  --line: #ebebef;
  --line-2: #dadce0;
  --hover: #f4f5f7;
  --blue: #0b67e6;
  --blue-soft: #e9f1fe;
  --shadow-1: 0 1px 2px rgba(60, 64, 67, 0.16), 0 1px 3px 1px rgba(60, 64, 67, 0.08);
  --shadow-2: 0 2px 6px rgba(60, 64, 67, 0.1), 0 8px 24px rgba(60, 64, 67, 0.1);
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --font: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.43;
  font-feature-settings: "cv11", "ss03";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection {
  background: #d3e3fd;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 8px;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
  color: inherit;
}

svg {
  fill: currentColor;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.wrap {
  width: min(1320px, 100% - 64px);
  margin: 0 auto;
}

/* ---------- Header ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}

.topbar__inner {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: center;
  gap: 24px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
}

.brand__logo {
  display: block;
  height: 38px;
  width: auto;
  aspect-ratio: 196 / 48;
  color: #111827;
  overflow: visible;
  transition: opacity 0.2s var(--ease);
}

.brand:hover .brand__logo {
  opacity: 0.85;
}

.search {
  position: relative;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: #f1f3f4;
  color: var(--muted);
  transition: background 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}

.search:hover {
  background: #eceef0;
}

.search:focus-within {
  background: #fff;
  border-color: var(--line);
  box-shadow: var(--shadow-1);
}

.search__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 15px;
  color: var(--text);
}

.search input::placeholder {
  color: var(--muted);
}

.search input::-webkit-search-cancel-button {
  display: none;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
}

.cat-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  margin-right: -14px;
  padding: 0 14px;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  transition: background 0.2s var(--ease);
}

.cat-link:hover {
  background: var(--hover);
}

.cat-link svg {
  width: 20px;
  height: 20px;
  color: var(--muted);
}

/* ---------- Tabs ---------- */

.tabs {
  background: #fff;
}

.tabs__inner {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 14px 0 4px;
}

.tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 112px;
  height: 36px;
  padding: 0 18px 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.tab:hover {
  background: var(--hover);
}

.tab.is-active {
  background: var(--blue-soft);
  border-color: var(--blue-soft);
  color: #0842a0;
}

.tab i {
  font-family: "Material Symbols Rounded";
  font-style: normal;
  font-size: 20px;
  line-height: 1;
  font-feature-settings: "liga";
  font-variation-settings: "FILL" 0;
  color: var(--muted);
  overflow: hidden;
  width: 20px;
  transition: color 0.2s var(--ease), font-variation-settings 0.25s var(--ease);
}

.tab:hover i {
  color: var(--text-2);
}

.tab.is-active i {
  color: var(--blue);
  font-variation-settings: "FILL" 1;
}

/* ---------- Page ---------- */

.page {
  padding: 20px 0 64px;
}

.featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.feature {
  position: relative;
  height: 260px;
  border-radius: 20px;
  overflow: hidden;
  isolation: isolate;
  box-shadow: var(--shadow-1);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
  color: #fff;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.feature--soundwave {
  background-image: linear-gradient(90deg, rgba(10, 4, 24, 0.75) 0%, rgba(10, 4, 24, 0.2) 55%, rgba(10, 4, 24, 0.05) 100%), url("../assets/img/hero-soundwave.jpg");
}

.feature--lumina {
  background-image: linear-gradient(90deg, rgba(8, 10, 20, 0.7) 0%, rgba(8, 10, 20, 0.15) 55%, rgba(8, 10, 20, 0) 100%), url("../assets/img/hero-lumina.jpg");
}

.feature--cover {
  background-color: #12141c;
  background-size: cover;
  background-position: center;
}

.feature:not([style*="background-image"]):not(.feature--soundwave):not(.feature--lumina) {
  background-color: #12141c;
  background-image: linear-gradient(135deg, #1a1f2e 0%, #2a1848 55%, #12141c 100%);
}

.feature:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}

.feature__text {
  padding: 28px 32px 0;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.25);
}

.feature__eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.feature__title {
  margin-top: 8px;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.feature__genre {
  margin-top: 8px;
  font-size: 16px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
}

.feature__tagline {
  margin-top: 4px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
}

.feature__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 20px 20px;
  padding: 8px 8px 8px 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
}

.feature__bar .ic {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.feature__name {
  flex: 1;
  display: flex;
  flex-direction: column;
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
}

.feature__name small {
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  color: rgba(255, 255, 255, 0.7);
}

.feature__go {
  width: 32px;
  height: 32px;
  padding: 6px;
  margin-right: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.feature:hover .feature__go {
  background: rgba(255, 255, 255, 0.28);
  transform: translateX(2px);
}

.feature {
  cursor: pointer;
}

.feature__link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

/* ---------- Section blocks ---------- */

.block {
  margin-top: 48px;
}

.block__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.block__head h2 {
  font-size: 22px;
  font-weight: 600;
  line-height: 28px;
  letter-spacing: -0.02em;
}

.block--lg {
  margin-top: 56px;
}

.see-all {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 36px;
  margin-right: -12px;
  padding: 0 8px 0 14px;
  border-radius: 999px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s var(--ease);
}

.see-all:hover {
  background: var(--blue-soft);
}

.see-all svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s var(--ease);
}

.see-all:hover svg {
  transform: translateX(2px);
}

/* ---------- App icons ---------- */

.ic {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 22%;
  color: #fff;
  box-shadow: var(--shadow-1);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.ic img {
  width: 62%;
  height: 62%;
  object-fit: contain;
}

.ic svg {
  width: 60%;
  height: 60%;
}

.ic--img img {
  width: 112%;
  height: 112%;
  object-fit: cover;
  max-width: none;
}

.ic--soundwave { background: linear-gradient(135deg, #7b3ff2, #4b1fb8); }
.ic--lumina { background: linear-gradient(160deg, #ffb35c 0%, #ff5f8f 45%, #6b5cff 100%); }
.ic--notion { background: #fff; }
.ic--notion img { width: 66%; height: 66%; }
.ic--forest { background: linear-gradient(180deg, #2f7d3a, #1e5a28); color: #9be38f; }
.ic--canva { background: linear-gradient(135deg, #00c4cc, #7d2ae8); }
.ic__word { font-family: "Brush Script MT", "Segoe Script", cursive; font-size: 19px; font-style: italic; letter-spacing: -0.02em; }
.ic--duolingo { background: #58cc02; }
.ic--duolingo img { width: 72%; height: 72%; }
.ic--headspace { background: #ffe7d6; }
.ic--headspace img { filter: invert(55%) sepia(80%) saturate(1800%) hue-rotate(345deg) brightness(102%); }
.ic--todoist { background: #e44332; }
.ic--spotify { background: #121212; }
.ic--spotify img { width: 72%; height: 72%; }
.ic--tiktok { background: #000; }
.ic--instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.ic--whatsapp { background: #25d366; }
.ic--youtube { background: #fff; }
.ic--youtube img { width: 70%; height: 70%; }
.ic--snapchat { background: #fffc00; }
.ic--snapchat img { filter: drop-shadow(0 0 0.6px #000) drop-shadow(0 0 0.6px #000); }
.ic--facebook { background: #1877f2; }
.ic--facebook img { width: 100%; height: 100%; margin-top: 18%; }
.ic--capcut { background: #fff; color: #111; }
.ic--pubg { background: linear-gradient(180deg, #2b2b2b, #0f0f0f); }
.ic--pubg img { width: 80%; height: 80%; }
.ic--roblox { background: #f2f2f2; }
.ic--nova { background: linear-gradient(160deg, #3b8bff, #1557d6); }
.ic--fit { background: linear-gradient(160deg, #36b864, #1f8c48); }
.ic--coin { background: linear-gradient(160deg, #c9a45a, #a07a32); }
.ic--sky { position: relative; background: linear-gradient(160deg, #4aa3ff, #1d6fe0); }
.ic--sky svg { position: relative; margin-top: 18%; }
.ic__sun {
  position: absolute;
  top: 18%;
  right: 18%;
  width: 34%;
  height: 34%;
  border-radius: 50%;
  background: #ffcf3d;
}

/* ---------- Tiles (Apps We Love, Popular Games) ---------- */

.row7 {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  margin: 0 -10px;
}

.tile {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  padding: 10px;
  border-radius: 16px;
  cursor: pointer;
  transition: background 0.2s var(--ease);
}

.tile:hover {
  background: var(--hover);
}

.tile:hover .ic,
.chart__col li:hover .ic {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(60, 64, 67, 0.18), 0 4px 10px rgba(60, 64, 67, 0.12);
}

.tile .ic {
  width: clamp(48px, 4.4vw, 64px);
  height: clamp(48px, 4.4vw, 64px);
}

.tile__text {
  min-width: 0;
  padding-top: 2px;
}

.tile h3 {
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tile p {
  font-size: 12.5px;
  line-height: 18px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tile--game h3 {
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ---------- Top Free chart ---------- */

.chart {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 24px;
  margin: 0 -12px;
}

.chart__col {
  list-style: none;
  margin: 0;
  padding: 0;
}

.chart__col li {
  display: grid;
  grid-template-columns: 18px 52px 1fr auto;
  align-items: center;
  gap: 14px;
  height: 76px;
  padding: 0 12px;
  border-radius: 16px;
  cursor: pointer;
  transition: background 0.2s var(--ease);
}

.chart__col li:hover {
  background: var(--hover);
}

.rank {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.chart__col .ic {
  width: 52px;
  height: 52px;
}

.chart__name {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.chart__name strong {
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chart__name span {
  font-size: 12.5px;
  line-height: 18px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chart__rating {
  font-size: 12.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* ---------- New & Updated ---------- */

.updated {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.ucard {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: 1fr auto;
  column-gap: 18px;
  padding: 20px;
  min-height: 128px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  cursor: pointer;
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

.ucard:hover {
  transform: translateY(-2px);
  border-color: transparent;
  box-shadow: var(--shadow-2);
}

.ucard .ic {
  grid-row: 1 / 3;
  width: 88px;
  height: 88px;
}

.ucard__text {
  padding-top: 8px;
}

.ucard h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.ucard p {
  margin-top: 2px;
  font-size: 13px;
  color: var(--muted);
}

.ucard__meta {
  grid-column: 2;
  align-self: end;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ---------- Categories ---------- */

.cats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.cat {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  aspect-ratio: 1.25;
  overflow: hidden;
  border-radius: 20px;
  color: #fff;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.cat::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 20% 0%, rgba(255, 255, 255, 0.22), transparent 60%);
  pointer-events: none;
}

.cat:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
}

.cat svg {
  width: 32%;
  height: 32%;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.15));
  transition: transform 0.3s var(--ease);
}

.cat:hover svg {
  transform: scale(1.06);
}

.cat span {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.cat--social { background: linear-gradient(160deg, #3a86f0, #1a5fc9); }
.cat--games { background: linear-gradient(160deg, #4cb96c, #2a8d4a); }
.cat--photo { background: linear-gradient(160deg, #8257dc, #5a31b3); }
.cat--music { background: linear-gradient(160deg, #ef5d63, #c9343c); }
.cat--edu { background: linear-gradient(160deg, #f7b84a, #e8921c); }

.ic--zoom img {
  width: 128%;
  height: 128%;
}

.row7--wrap {
  row-gap: 8px;
}

/* ---------- Editors' Choice ---------- */

.stories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.story {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  isolation: isolate;
  background: #fff;
  box-shadow: var(--shadow-1);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.story:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
}

.story__img {
  aspect-ratio: 16 / 8.5;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s var(--ease);
}

.story:hover .story__img {
  transform: scale(1.04);
}

.story__body {
  position: relative;
  padding: 18px 22px 22px;
  background: #fff;
}

.story__eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
}

.story h3 {
  margin-top: 6px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.story__body > p:last-child {
  margin-top: 6px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
}

/* ---------- Collections ---------- */

.collections {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.coll {
  display: flex;
  flex-direction: column;
  padding: 22px;
  border-radius: 20px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.coll:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
}

.coll--blue { background: linear-gradient(160deg, #eef4ff, #e3edfd); }
.coll--green { background: linear-gradient(160deg, #eef8f1, #e1f3e6); }
.coll--purple { background: linear-gradient(160deg, #f5f0fe, #ebe3fc); }
.coll--orange { background: linear-gradient(160deg, #fff5ea, #fcebd9); }

.coll__icons {
  display: flex;
  margin-bottom: 20px;
}

.coll__icons .ic {
  width: 48px;
  height: 48px;
  border: 2.5px solid #fff;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.15);
}

.coll__icons .ic + .ic {
  margin-left: -8px;
}

.coll:hover .coll__icons .ic {
  transform: translateY(-2px);
}

.coll:hover .coll__icons .ic:nth-child(2) { transition-delay: 0.03s; }
.coll:hover .coll__icons .ic:nth-child(3) { transition-delay: 0.06s; }
.coll:hover .coll__icons .ic:nth-child(4) { transition-delay: 0.09s; }

.coll h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.coll p {
  margin-top: 4px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-2);
  flex: 1;
}

.coll__count {
  margin-top: 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--blue);
}

/* ---------- Trust ---------- */

.trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 56px;
  padding: 0;
}

.trust__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 16px;
  background: #f8f9fa;
}

.trust__ic {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.trust__ic svg {
  width: 24px;
  height: 24px;
}

.trust__ic--green { background: #e4f4e9; color: #1f8a46; }
.trust__ic--blue { background: var(--blue-soft); color: var(--blue); }
.trust__ic--purple { background: #efe9fc; color: #6a3ec6; }
.trust__ic--orange { background: #fdf0e1; color: #e08a00; }

.trust h3 {
  font-size: 14px;
  font-weight: 600;
}

.trust p {
  margin-top: 2px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
}

/* ---------- Footer ---------- */

.footer {
  margin-top: 24px;
  background: #18181b;
  color: #fff;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 32px;
  padding: 56px 0 44px;
}

.brand--light .brand__logo {
  color: #fff;
}

.footer__brand p {
  max-width: 260px;
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
}

.footer__col h4 {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.95);
}

.footer__col a {
  display: block;
  width: fit-content;
  margin-bottom: 12px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s var(--ease);
}

.footer__col a:hover {
  color: #fff;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__legal {
  display: flex;
  gap: 24px;
}

.footer__legal a,
.footer__bottom p {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s var(--ease);
}

.footer__legal a:hover {
  color: #fff;
}

/* ---------- Search suggestions ---------- */

.search__kbd {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: #fff;
  font: 500 11px/1 var(--font);
  color: var(--muted);
  transition: opacity 0.15s var(--ease);
}

.search:focus-within .search__kbd {
  opacity: 0;
}

.suggest {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  padding: 14px 8px 8px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 40px rgba(60, 64, 67, 0.16), 0 2px 6px rgba(60, 64, 67, 0.06);
  color: var(--text);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px) scale(0.985);
  transform-origin: top center;
  transition: opacity 0.18s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
}

.search:focus-within .suggest {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.suggest__label {
  padding: 0 12px 8px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.suggest__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 12px 14px;
}

.suggest__chips a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--hover);
  font-size: 13px;
  color: var(--text-2);
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}

.suggest__chips a:hover {
  background: var(--blue-soft);
  color: #0842a0;
}

.suggest__chips svg {
  width: 14px;
  height: 14px;
  color: var(--blue);
}

.suggest__apps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.suggest__apps a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 12px;
  transition: background 0.15s var(--ease);
}

.suggest__apps a:hover,
.suggest__apps a:focus-visible {
  background: var(--hover);
  outline: 0;
}

.suggest__apps .ic {
  width: 36px;
  height: 36px;
}

.suggest__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.suggest__text strong {
  font-size: 14px;
  font-weight: 500;
}

.suggest__text small {
  font-size: 12px;
  color: var(--muted);
}

.suggest mark {
  background: none;
  color: var(--blue);
  font-weight: 600;
}

.suggest__empty {
  display: none;
  padding: 10px 12px 14px;
  font-size: 13px;
  color: var(--muted);
}

.search.is-query .suggest__trending { display: none; }
.search.is-query .suggest__label--apps { display: none; }
.search.is-query .suggest { padding-top: 8px; }
.search.is-empty .suggest__empty { display: block; }

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 15;
  background: rgba(32, 33, 36, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease);
}

body:has(.search:focus-within)::after {
  opacity: 1;
}

/* ---------- Categories popover ---------- */

body:has(#catmenu:popover-open) .cat-link {
  background: var(--hover);
  color: var(--text);
}

.catmenu {
  position: fixed;
  inset: 72px max(16px, calc((100vw - 1320px) / 2)) auto auto;
  width: min(904px, calc(100vw - 32px));
  margin: 0;
  padding: 0;
  border: 1px solid rgba(60, 64, 67, 0.08);
  border-radius: 28px;
  background: #fff;
  color: var(--text);
  box-shadow:
    0 24px 64px -12px rgba(60, 64, 67, 0.22),
    0 8px 20px -8px rgba(60, 64, 67, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top right;
  transition:
    opacity 0.2s var(--ease),
    transform 0.25s var(--ease),
    overlay 0.25s allow-discrete,
    display 0.25s allow-discrete;
}

.catmenu:popover-open {
  opacity: 1;
  transform: none;
}

@starting-style {
  .catmenu:popover-open {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
}

.catmenu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 16px 14px 20px;
  border-bottom: 1px solid var(--line);
}

.catmenu__tabs {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: #f1f3f4;
}

.catmenu__tabs label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 112px;
  height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.catmenu__tabs input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.catmenu__tabs span {
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(60, 64, 67, 0.08);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.catmenu__tabs label:has(:checked) {
  background: #fff;
  color: var(--text);
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.15), 0 1px 3px rgba(60, 64, 67, 0.08);
}

.catmenu__tabs label:has(:checked) span {
  background: var(--blue-soft);
  color: var(--blue);
}

.catmenu__tabs label:has(:focus-visible) {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}

.catmenu__panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px 4px;
  padding: 12px;
  animation: panel-in 0.25s var(--ease);
}

@media (max-height: 640px) {
  .catmenu__panel {
    max-height: calc(100dvh - 160px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }
}

.catmenu__panel--games {
  display: none;
}

.catmenu:has(input[value="games"]:checked) .catmenu__panel--apps {
  display: none;
}

.catmenu:has(input[value="games"]:checked) .catmenu__panel--games {
  display: grid;
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
}

.catmenu__panel a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  height: 48px;
  padding: 0 10px 0 8px;
  border-radius: 14px;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.005em;
  color: var(--text-2);
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}

.catmenu__panel a:hover,
.catmenu__panel a:focus-visible {
  background: var(--hover);
  color: var(--text);
}

.catmenu__panel i {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--c) 11%, #fff);
  color: var(--c);
  font-family: "Material Symbols Rounded";
  font-style: normal;
  font-size: 19px;
  line-height: 1;
  font-feature-settings: "liga";
  font-variation-settings: "FILL" 1;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}

.catmenu__panel a:hover i,
.catmenu__panel a:focus-visible i {
  transform: scale(1.06);
  background: var(--c);
  color: #fff;
}

.catmenu__all {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 36px;
  padding: 0 8px 0 14px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--blue);
  transition: background 0.18s var(--ease);
}

.catmenu__all:hover {
  background: var(--blue-soft);
}

.catmenu__all svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ---------- Pointer spotlight ---------- */

.ucard,
.coll,
.story {
  position: relative;
}

.feature::after,
.cat::after,
.ucard::after,
.coll::after,
.story::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), var(--spot, rgba(255, 255, 255, 0.16)), transparent 60%);
  transition: opacity 0.35s var(--ease);
}

.ucard { --spot: rgba(11, 103, 230, 0.07); }
.coll { --spot: rgba(255, 255, 255, 0.55); }
.story { --spot: rgba(255, 255, 255, 0.12); }

.feature:hover::after,
.cat:hover::after,
.ucard:hover::after,
.coll:hover::after,
.story:hover::after {
  opacity: 1;
}

/* ---------- Typography polish ---------- */

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

html {
  scroll-padding-top: 88px;
  scrollbar-gutter: stable;
  overflow-x: clip;
  overscroll-behavior-x: none;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  overflow-x: clip;
}

@view-transition {
  navigation: auto;
}

/* ---------- Scroll-driven motion ---------- */

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
}

@keyframes elevate {
  to {
    border-bottom-color: transparent;
    box-shadow: 0 1px 0 rgba(60, 64, 67, 0.06), 0 6px 24px rgba(60, 64, 67, 0.08);
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  @supports (animation-timeline: view()) {
    @media (hover: hover) and (pointer: fine) {
      .page > section:not(.featured) {
        animation: reveal linear both;
        animation-timeline: view();
        animation-range: entry 0% entry 35%;
      }
    }

    .topbar {
      animation: elevate linear both;
      animation-timeline: scroll();
      animation-range: 0 120px;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ---------- Touch devices ---------- */

@media (hover: none) {
  .feature:hover,
  .ucard:hover,
  .cat:hover,
  .story:hover,
  .coll:hover,
  .feature:hover .feature__go,
  .tile:hover .ic,
  .chart__col li:hover .ic,
  .cat:hover svg,
  .story:hover .story__img,
  .coll:hover .coll__icons .ic {
    transform: none;
  }

  .tile:hover,
  .chart__col li:hover {
    background: transparent;
  }

  .feature:active,
  .ucard:active,
  .cat:active,
  .story:active,
  .coll:active,
  .tile:active,
  .chart__col li:active {
    transform: scale(0.98);
    transition-duration: 0.1s;
  }
}

.row7,
.tabs__inner {
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

/* Horizontal scroll hints: fade the edge that has more content */

[data-scroll="right"] {
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent);
}

[data-scroll="left"] {
  -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 56px), transparent);
  mask-image: linear-gradient(to left, #000 calc(100% - 56px), transparent);
}

[data-scroll="both"] {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 56px), transparent);
  mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 56px), transparent);
}

.scrollbar {
  position: relative;
  width: 64px;
  height: 4px;
  margin: 12px auto 0;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line);
}

.scrollbar[hidden] {
  display: none;
}

@media (min-width: 901px) {
  .scrollbar {
    display: none;
  }
}

.scrollbar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--muted);
  transition: transform 0.1s linear;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .row7 {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 180px;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 10px;
  }

  .row7 > * {
    scroll-snap-align: start;
  }
}

@media (max-width: 960px) {
  .topbar__inner {
    grid-template-columns: auto 1fr;
    grid-template-areas: "brand actions" "search search";
    height: auto;
    padding: 12px 0;
    gap: 12px;
  }

  .catmenu {
    inset: 64px 12px auto 12px;
    width: auto;
    border-radius: 24px;
  }

  .catmenu__panel {
    max-height: calc(100dvh - 150px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .brand { grid-area: brand; }
  .search { grid-area: search; }
  .topbar__actions { grid-area: actions; }

  .tabs__inner {
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
    padding-inline: 16px;
    scroll-padding-inline: 16px;
  }

  .tab {
    min-width: 0;
    flex-shrink: 0;
  }

  .wrap {
    width: calc(100% - 32px);
  }

  .featured,
  .chart {
    grid-template-columns: 1fr;
  }

  .updated,
  .collections {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .stories {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .row7--wrap {
    grid-auto-flow: row;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-columns: auto;
    overflow: visible;
  }

  .trust {
    grid-template-columns: repeat(2, 1fr);
  }

  .cats {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }

  .footer__top {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .cat-link {
    font-size: 0;
    gap: 0;
  }

  .feature__title {
    font-size: 34px;
  }

  .updated,
  .collections,
  .trust {
    grid-template-columns: 1fr;
  }

  .cats {
    grid-template-columns: repeat(2, 1fr);
  }

  .catmenu__panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catmenu__head {
    padding: 12px 10px 12px 12px;
  }

  .catmenu__tabs label {
    min-width: 0;
    padding: 0 12px;
  }

  .search__kbd {
    display: none;
  }

  .cat span {
    font-size: 16px;
  }

  .footer__top {
    gap: 32px 16px;
    padding: 44px 0 32px;
    text-align: center;
  }

  .footer__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer__brand p {
    margin-inline: auto;
  }

  .footer__col a {
    margin-inline: auto;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer__legal {
    flex-wrap: wrap;
    justify-content: center;
    padding-left: 0;
    gap: 10px 20px;
  }
}

/* ================= App detail page ================= */

.app i,
.download i,
.dlbar i,
.lightbox i,
.ic__sym {
  font-family: "Material Symbols Rounded";
  font-style: normal;
  font-weight: normal;
  line-height: 1;
  font-feature-settings: "liga";
  font-variation-settings: "FILL" 1;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  flex-shrink: 0;
}

.ic__sym {
  font-size: 28px;
  width: 28px;
}

.app .trust__ic i {
  font-size: 24px;
}

/* Breadcrumb */

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 4px 0 0;
  list-style: none;
  font-size: 13px;
  color: var(--muted);
}

.crumbs li + li::before {
  content: "/";
  margin-right: 4px;
  color: var(--line-2);
}

.crumbs a {
  padding: 2px 4px;
  border-radius: 6px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.crumbs a:hover {
  color: var(--blue);
  background: var(--blue-soft);
}

.crumbs [aria-current] {
  padding: 2px 4px;
  color: var(--text-2);
  font-weight: 500;
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: 48px;
  align-items: center;
  margin-top: 20px;
}

.hero__main {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 24px;
  align-items: center;
}

.hero__icon {
  width: 112px;
  height: 112px;
  border-radius: 26px;
  box-shadow: 0 2px 6px rgba(60, 64, 67, 0.16), 0 10px 28px rgba(107, 92, 255, 0.22);
}

.hero__icon svg {
  width: 52%;
  height: 52%;
}

.hero h1 {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.hero__dev {
  display: inline-block;
  margin-top: 6px;
  font-size: 15px;
  font-weight: 500;
  color: var(--blue);
}

.hero__dev:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f1f3f4;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
}

.badge i {
  font-size: 15px;
}

.badge--blue { background: var(--blue-soft); color: #0842a0; }
.badge--blue i { color: var(--blue); }
.badge--green { background: #e4f4e9; color: #146c34; }
.badge--green i { color: #1f8a46; }

.stats {
  grid-column: 1 / -1;
  display: flex;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.stats li {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 0;
  padding: 0 8px;
  text-align: center;
}

.stats li + li {
  border-left: 1px solid var(--line);
}

.stats strong {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 24px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.stats strong i {
  font-size: 16px;
  color: #f4b400;
}

.stats span {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.age {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 20px;
  padding: 0 4px;
  border: 1.5px solid currentColor;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}

.cta {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: #f1f3f4;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn i {
  font-size: 20px;
}

.btn--primary {
  height: 52px;
  padding: 0 28px 0 22px;
  background: var(--blue);
  color: #fff;
  font-size: 15px;
  box-shadow: 0 1px 2px rgba(11, 103, 230, 0.3), 0 6px 18px rgba(11, 103, 230, 0.25);
}

.btn--primary small {
  margin-left: 4px;
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}

.btn--primary:hover {
  background: #0a5cd0;
  box-shadow: 0 2px 4px rgba(11, 103, 230, 0.3), 0 10px 26px rgba(11, 103, 230, 0.32);
  transform: translateY(-1px);
}

.btn--tonal {
  height: 52px;
  background: var(--blue-soft);
  color: #0842a0;
}

.btn--tonal:hover {
  background: #dce8fd;
}

.btn--icon {
  width: 52px;
  height: 52px;
  padding: 0;
  background: #fff;
  border: 1px solid var(--line-2);
}

.btn--icon:hover {
  background: var(--hover);
}

.btn--sm {
  height: 36px;
  padding: 0 14px 0 12px;
  font-size: 13px;
}

.btn--sm i {
  font-size: 18px;
}

.btn--sm.btn--primary {
  box-shadow: 0 4px 12px rgba(11, 103, 230, 0.25);
}

.hero__note {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--muted);
}

.hero__note i {
  font-size: 16px;
  color: #1f8a46;
}

.hero__art {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 24px;
  aspect-ratio: 1024 / 500;
  box-shadow: var(--shadow-2);
  isolation: isolate;
}

.hero__art img {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__art img[hidden] {
  display: none;
}

.hero__art:has(img[hidden]) figcaption {
  display: none;
}

/* Shown behind the feature graphic; visible only when the image is missing */
.hero__fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0 8%;
  overflow: hidden;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(255, 255, 255, 0.28), transparent 55%),
    linear-gradient(135deg, var(--a, #3b82f6), var(--b, #22c3c9));
  color: #fff;
}

.hero__fallback::before,
.hero__fallback::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.hero__fallback::before {
  width: 62%;
  aspect-ratio: 1;
  right: -14%;
  bottom: -70%;
}

.hero__fallback::after {
  width: 30%;
  aspect-ratio: 1;
  right: 18%;
  top: -36%;
}

.hero__fallback .ic {
  position: relative;
  flex: none;
  width: 96px;
  height: 96px;
  border-radius: 24px;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.35), 0 16px 40px rgba(0, 0, 0, 0.22);
}

.hero__fallback .ic svg {
  width: 52%;
  height: 52%;
}

.hero__fallback strong {
  position: relative;
  display: block;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.hero__fallback div > span {
  position: relative;
  display: block;
  margin-top: 6px;
  font-size: 15px;
  opacity: 0.88;
}

.hero__art figcaption {
  position: absolute;
  left: 20px;
  bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(10, 10, 20, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
}

/* Security scan strip */

.scan {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.scan__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 16px;
  background: #f8f9fa;
}

.scan h3 {
  font-size: 14px;
  font-weight: 600;
}

.scan p {
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--muted);
}

/* Two-column layout */

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 56px;
  align-items: start;
}

.layout__main > .block:first-child {
  margin-top: 44px;
}

.block__sub {
  font-size: 13px;
  color: var(--muted);
}

.layout__side {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 16px;
  margin-top: 44px;
}

/* Screenshots */

.shots {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 200px;
  gap: 14px;
  margin: 0 -4px;
  padding: 4px 4px 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}

@media (max-width: 900px) {
  .shots {
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .shots::-webkit-scrollbar {
    display: none;
  }
}

.shot {
  position: relative;
  margin: 0;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 20px;
  background: var(--bg);
  scroll-snap-align: start;
  isolation: isolate;
}

.shot--1 { --bg: linear-gradient(170deg, #6b5cff, #3b2fc9); }
.shot--2 { --bg: linear-gradient(170deg, #ff7a8a, #c2357a); }
.shot--3 { --bg: linear-gradient(170deg, #ffb35c, #ff5f6d); }
.shot--4 { --bg: linear-gradient(170deg, #2fc4c9, #1a6fd6); }
.shot--5 { --bg: linear-gradient(170deg, #20232b, #0b0d12); }

.shot figcaption {
  padding: 22px 18px 0;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.shot__phone {
  position: absolute;
  left: 13%;
  right: 13%;
  top: 27%;
  bottom: -8%;
  padding: 5px;
  border-radius: 24px;
  background: #0b0b0f;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.shot__screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 19px;
  background: url("../assets/img/hero-lumina.jpg") var(--x, 50%) 50% / auto 100%;
}

.ui-tools {
  position: absolute;
  inset: auto 0 8% 0;
  display: flex;
  justify-content: space-around;
  padding: 8px 6px;
  margin: 0 8px;
  border-radius: 12px;
  background: rgba(10, 10, 16, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.ui-tools i {
  font-size: 16px;
  color: #fff;
}

.ui-tools i:first-child {
  color: #9b8cff;
}

.ui-split {
  position: absolute;
  inset: 0 50% 0 0;
  background: inherit;
  background: url("../assets/img/hero-lumina.jpg") 62% 50% / auto 100%;
  filter: grayscale(0.85) brightness(0.75) contrast(0.9);
  border-right: 2px solid #fff;
}

.ui-knob {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 26px;
  height: 26px;
  margin-left: -13px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.ui-filters {
  position: absolute;
  inset: auto 0 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  padding: 10px 8px 26px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75) 30%);
}

.ui-filters span {
  aspect-ratio: 1;
  border-radius: 8px;
  background: url("../assets/img/hero-lumina.jpg") 72% 50% / auto 100%;
}

.ui-filters span:nth-child(1) { filter: sepia(0.8); outline: 2px solid #fff; outline-offset: 1px; }
.ui-filters span:nth-child(2) { filter: grayscale(1); }
.ui-filters span:nth-child(3) { filter: hue-rotate(160deg) saturate(1.4); }
.ui-filters span:nth-child(4) { filter: contrast(1.5) saturate(1.6); }

.ui-sliders {
  position: absolute;
  inset: auto 6px 6px;
  display: grid;
  gap: 8px;
  padding: 12px 12px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
}

.ui-sliders p {
  display: grid;
  gap: 5px;
  font-size: 9px;
  font-weight: 600;
  color: #1f1f1f;
}

.ui-sliders span {
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, #1a6fd6 var(--v), #dadce0 0);
  position: relative;
}

.ui-sliders span::after {
  content: "";
  position: absolute;
  left: var(--v);
  top: 50%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.ui-export {
  position: absolute;
  inset: auto 6px 6px;
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 14px;
  background: #fff;
  font-size: 9.5px;
  color: #1f1f1f;
}

.ui-export b {
  font-size: 12px;
}

.ui-export p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  border-radius: 8px;
  background: #f1f3f4;
}

.ui-export p:first-of-type {
  background: var(--blue-soft);
  color: #0842a0;
  font-weight: 600;
}

.ui-export i {
  font-size: 13px;
  color: var(--blue);
}

.ui-export span {
  margin-top: 2px;
  padding: 7px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  text-align: center;
}

/* About */

.about__lead {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-2);
}

.more summary {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-top: 10px;
  padding: 6px 8px 6px 12px;
  margin-left: -12px;
  border-radius: 999px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  transition: background 0.2s var(--ease);
}

.more summary::-webkit-details-marker {
  display: none;
}

.more summary:hover {
  background: var(--blue-soft);
}

.more summary i,
.faq summary i {
  font-size: 20px;
  font-variation-settings: "FILL" 0;
  transition: transform 0.25s var(--ease);
}

.more[open] summary i,
.faq [open] summary i {
  transform: rotate(180deg);
}

.more__close,
.more[open] .more__open {
  display: none;
}

.more[open] .more__close {
  display: inline;
}

.more h3 {
  margin: 14px 0 10px;
  font-size: 15px;
  font-weight: 600;
}

.more > p {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-2);
}

.ticks {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ticks li {
  position: relative;
  padding-left: 28px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-2);
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #e4f4e9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.2 2.2 4.8-4.8' fill='none' stroke='%231f8a46' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100%;
}

.ticks strong {
  color: var(--text);
  font-weight: 600;
}

.ticks--card {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tags a {
  height: 32px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-2);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.tags a:hover {
  background: var(--hover);
}

/* Ratings */

.ratings {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: center;
  padding: 24px 28px;
  border-radius: 20px;
  background: #f8f9fa;
}

.ratings__score {
  text-align: center;
}

.ratings__score strong {
  display: block;
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}

.ratings__score p {
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--muted);
}

.stars {
  display: inline-block;
  margin-top: 8px;
  font-size: 18px;
  letter-spacing: 1px;
  line-height: 1;
}

.stars::before {
  content: "★★★★★";
  background: linear-gradient(90deg, #f4b400 calc(var(--r) / 5 * 100%), #dadce0 0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stars--sm {
  margin-top: 0;
  font-size: 12px;
}

.ratings__bars {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ratings__bars li {
  display: grid;
  grid-template-columns: 12px 1fr;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.ratings__bars b {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue) var(--v), #e4e7eb 0);
}

.reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.review {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
}

.review header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review header div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 8px;
}

.review h3 {
  width: 100%;
  font-size: 14px;
  font-weight: 600;
}

.review time {
  font-size: 12px;
  color: var(--muted);
}

.avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--c);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.review > p {
  flex: 1;
  margin-top: 14px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-2);
}

.review footer {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
}

.review footer i {
  font-size: 15px;
  font-variation-settings: "FILL" 0;
}

/* APK info */

.info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}

.info > div {
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--line);
}

.info > div:nth-child(odd):not(.info__wide) {
  border-right: 1px solid var(--line);
}

.info > div:last-child {
  border-bottom: 0;
}

.info__wide {
  grid-column: 1 / -1;
}

.info dt {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}

.info dt i {
  font-size: 18px;
  color: #80868b;
  font-variation-settings: "FILL" 0;
}

.info dd {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin: 0;
  font-size: 13.5px;
  font-weight: 500;
}

.info dd a {
  color: var(--blue);
}

.info code {
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--text-2);
  overflow-wrap: anywhere;
}

.copy {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.copy:hover {
  background: var(--hover);
  color: var(--text);
}

.copy i {
  font-size: 18px;
  font-variation-settings: "FILL" 0;
}

.copy.is-done {
  color: #1f8a46;
}

/* Versions */

.versions {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 20px;
}

.versions li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px 14px 20px;
}

.versions li + li {
  border-top: 1px solid var(--line);
}

.versions li > div {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.versions strong {
  font-size: 14px;
  font-weight: 600;
}

.versions span {
  font-size: 12.5px;
  color: var(--muted);
}

.versions .tag-latest {
  padding: 3px 10px;
  border-radius: 999px;
  background: #e4f4e9;
  color: #146c34;
  font-size: 11.5px;
  font-weight: 600;
}

.versions .btn--sm {
  background: var(--blue-soft);
  color: #0842a0;
}

.versions .btn--sm:hover {
  background: #dce8fd;
}

/* Install steps */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  padding: 20px;
  border-radius: 20px;
  background: #f8f9fa;
}

.steps b {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
}

.steps h3 {
  margin-top: 14px;
  font-size: 15px;
  font-weight: 600;
}

.steps p {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

.steps em {
  font-style: normal;
  font-weight: 600;
  color: var(--text-2);
}

/* FAQ */

.faq {
  border: 1px solid var(--line);
  border-radius: 20px;
}

.faq details + details {
  border-top: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  font-size: 14.5px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary i {
  color: var(--muted);
}

.faq details p {
  padding: 0 20px 18px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-2);
}

/* Sidebar */

.side {
  padding: 20px 12px 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
}

.side h2 {
  padding: 0 8px 8px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.sim-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sim {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 14px;
  transition: background 0.2s var(--ease);
}

.sim:hover {
  background: var(--hover);
}

.sim .ic {
  width: 48px;
  height: 48px;
}

.sim .ic__word {
  font-size: 14px;
}

.sim div {
  flex: 1;
  min-width: 0;
}

.sim h3 {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sim p {
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sim__r {
  font-size: 12.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.dev {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0 8px 4px;
  list-style: none;
}

.dev li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
}

.dev i {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #f1f3f4;
  color: var(--muted);
  font-size: 19px;
}

.dev div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.dev strong {
  font-size: 13.5px;
  font-weight: 500;
}

.dev span,
.dev a {
  font-size: 12.5px;
  color: var(--muted);
}

.dev a {
  color: var(--blue);
}

/* Mobile download bar */

.dlbar {
  display: none;
}

@media (hover: none) {
  .btn--primary:hover {
    transform: none;
  }

  .btn:active {
    transform: scale(0.97);
  }
}

@media (max-width: 1100px) {
  .layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 40px;
  }

  .reviews {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero__art {
    order: -1;
  }

  .layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .layout__side {
    position: static;
    grid-template-columns: repeat(2, 1fr);
    align-items: start;
  }

  .layout__side .side:last-child {
    grid-column: 1 / -1;
  }

  .scan {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 28px;
  }

  .app-body {
    padding-bottom: 76px;
  }

  .dlbar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 18;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 8px 8px 8px;
    border: 1px solid rgba(60, 64, 67, 0.08);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    box-shadow: 0 10px 30px rgba(60, 64, 67, 0.18), 0 2px 6px rgba(60, 64, 67, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(calc(100% + 24px));
    transition: transform 0.35s var(--ease), opacity 0.25s var(--ease), visibility 0.35s;
  }

  .dlbar.is-on {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .dlbar .ic {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .dlbar__text {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  .dlbar__text strong {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .dlbar__text span {
    font-size: 12px;
    color: var(--muted);
  }

  .dlbar .btn {
    height: 40px;
    padding: 0 16px 0 12px;
  }
}

@media (max-width: 600px) {
  .hero__main {
    column-gap: 16px;
  }

  .hero__art {
    border-radius: 18px;
  }

  .hero__fallback {
    gap: 14px;
  }

  .hero__fallback .ic {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35), 0 10px 24px rgba(0, 0, 0, 0.2);
  }

  .hero__fallback strong {
    font-size: 20px;
  }

  .hero__fallback div > span {
    margin-top: 3px;
    font-size: 12.5px;
  }

  .hero__icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
  }

  .hero h1 {
    font-size: 24px;
  }

  .hero__dev {
    margin-top: 4px;
    font-size: 14px;
  }

  .hero__badges {
    grid-column: 1 / -1;
  }

  .hero__head {
    display: contents;
  }

  .hero__head h1,
  .hero__head .hero__dev {
    grid-column: 2;
  }

  .hero__icon {
    grid-row: 1 / 3;
  }

  .hero__head h1 {
    align-self: end;
  }

  .hero__head .hero__dev {
    align-self: start;
    justify-self: start;
  }

  .stats {
    margin-top: 22px;
    overflow-x: auto;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }

  .stats li {
    flex: 0 0 auto;
    padding: 0 16px;
  }

  .stats li:first-child {
    padding-left: 0;
  }

  .cta {
    margin-top: 22px;
  }

  .cta .btn--primary {
    flex: 1 1 100%;
  }

  .cta .btn--tonal {
    flex: 1;
  }

  .shots {
    grid-auto-columns: 168px;
    margin-right: -16px;
    padding-right: 16px;
    scroll-padding-inline: 4px;
  }

  .ratings {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
  }

  .info {
    grid-template-columns: 1fr;
  }

  .info > div {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 12px 16px;
  }

  .info > div:nth-child(odd):not(.info__wide) {
    border-right: 0;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .layout__side {
    grid-template-columns: 1fr;
  }
}

/* ================= App list page ================= */

.cathead {
  --accent: #7b3fe4;
  --glow-1: rgba(123, 63, 228, 0.14);
  --glow-2: rgba(255, 95, 143, 0.12);
  --bg: linear-gradient(135deg, #f6f2ff, #fbf5fb 55%, #f2f6ff);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 40px;
  margin-top: 16px;
  padding: 36px 44px;
  overflow: hidden;
  border-radius: 28px;
  background:
    radial-gradient(60% 120% at 100% 0%, var(--glow-1), transparent 60%),
    radial-gradient(50% 100% at 72% 100%, var(--glow-2), transparent 60%),
    var(--bg);
}

.cathead--blue {
  --accent: #0b67e6;
  --glow-1: rgba(11, 103, 230, 0.14);
  --glow-2: rgba(34, 195, 201, 0.12);
  --bg: linear-gradient(135deg, #eef4ff, #f2f9fb 55%, #f4f2ff);
}

.cathead--green {
  --accent: #1f8a46;
  --glow-1: rgba(61, 220, 132, 0.18);
  --glow-2: rgba(34, 195, 201, 0.12);
  --bg: linear-gradient(135deg, #effaf3, #f1f9f8 55%, #f2f6ff);
}

.cathead--orange {
  --accent: #e8710a;
  --glow-1: rgba(255, 160, 60, 0.2);
  --glow-2: rgba(255, 95, 143, 0.12);
  --bg: linear-gradient(135deg, #fff5eb, #fff3f3 55%, #fdf6ff);
}

.cathead--red {
  --accent: #d93025;
  --glow-1: rgba(217, 48, 37, 0.14);
  --glow-2: rgba(123, 63, 228, 0.12);
  --bg: linear-gradient(135deg, #fff1f0, #faf2fb 55%, #f2f4ff);
}

.cathead__main {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.cathead__ic {
  display: grid;
  place-items: center;
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: #fff;
  color: var(--accent);
  box-shadow: var(--shadow-1);
}

.cathead__ic i {
  font-family: "Material Symbols Rounded";
  font-style: normal;
  font-weight: normal;
  font-size: 34px;
  line-height: 1;
  font-feature-settings: "liga";
  font-variation-settings: "FILL" 1;
  -webkit-font-smoothing: antialiased;
}

.cathead__eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.cathead h1 {
  margin-top: 4px;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.cathead__lead {
  max-width: 620px;
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-2);
}

.cathead__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.cathead__facts li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 14%, transparent);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  color: var(--text-2);
}

.cathead__facts strong {
  font-weight: 600;
  color: var(--text);
}

.cathead__facts i {
  font-size: 17px;
  color: #1f8a46;
}

.cathead__stack {
  position: relative;
  width: 280px;
  height: 150px;
}

.cathead__stack .ic {
  position: absolute;
  width: 76px;
  height: 76px;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(60, 64, 67, 0.12), 0 14px 30px rgba(60, 64, 67, 0.16);
}

.cathead__stack .ic__sym {
  font-size: 38px;
  width: 38px;
}

.cathead__stack .ic:nth-child(1) { left: 0; top: 52px; transform: rotate(-10deg); }
.cathead__stack .ic:nth-child(2) { left: 52px; top: 8px; transform: rotate(-5deg); }
.cathead__stack .ic:nth-child(3) { left: 102px; top: 50px; z-index: 1; transform: scale(1.12); }
.cathead__stack .ic:nth-child(4) { left: 156px; top: 2px; transform: rotate(6deg); }
.cathead__stack .ic:nth-child(5) { left: 204px; top: 64px; transform: rotate(12deg); }

.cathead--cover {
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
  gap: 28px;
}

.cathead__cover {
  margin: 0;
  justify-self: end;
  width: min(100%, 420px);
}

.cathead__cover img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(60, 64, 67, 0.12);
}

/* Subcategory chips */

.chips {
  display: flex;
  gap: 8px;
  margin-top: 24px;
  overflow-x: auto;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.chips::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-2);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.chip:hover {
  background: var(--hover);
}

.chip span {
  margin-left: 6px;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.chip[aria-current] {
  border-color: transparent;
  background: var(--blue-soft);
  color: #0842a0;
}

.chip[aria-current] span {
  color: #3367d6;
}

/* Toolbar */

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 16px;
  margin: 40px 0 18px;
}

.toolbar h2 {
  font-size: 22px;
  font-weight: 600;
  line-height: 28px;
  letter-spacing: -0.02em;
}

.toolbar__count {
  margin-top: 2px;
  font-size: 13px;
  color: var(--muted);
}

.toolbar__count strong {
  font-weight: 600;
  color: var(--text-2);
}

.toolbar__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.seg {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: #f1f3f4;
}

.seg button,
.seg a {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.seg button:hover,
.seg a:hover {
  color: var(--text);
}

.seg button[aria-pressed="true"],
.seg a[aria-current="page"],
.seg a.is-active {
  background: #fff;
  color: var(--text);
  box-shadow: var(--shadow-1);
}

.chip.is-active {
  border-color: transparent;
  background: var(--blue-soft);
  color: #0842a0;
}

.acards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rank-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}

.fchip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), padding 0.2s var(--ease);
}

.fchip:hover {
  background: var(--hover);
}

.app .fchip i {
  width: 0;
  margin-left: -4px;
  font-size: 18px;
  opacity: 0;
  transition: width 0.2s var(--ease), margin 0.2s var(--ease), opacity 0.2s var(--ease);
}

.fchip[aria-pressed="true"] {
  padding-left: 10px;
  border-color: transparent;
  background: var(--blue-soft);
  color: #0842a0;
}

.fchip[aria-pressed="true"]:hover {
  background: #dce8fd;
}

.app .fchip[aria-pressed="true"] i {
  width: 18px;
  margin-left: 0;
  opacity: 1;
}

/* App cards */

.alist {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.acard {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}

.acard[hidden] {
  display: none;
}

.acard:hover {
  border-color: transparent;
  box-shadow: var(--shadow-2);
  transform: translateY(-2px);
}

.acard__link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

.acard__top {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 28px;
}

.acard .ic {
  width: 64px;
  height: 64px;
  border-radius: 16px;
}

.acard .ic__sym {
  font-size: 34px;
  width: 34px;
}

.acard .ic__word {
  font-size: 15px;
}

.acard__title {
  min-width: 0;
}

.acard h3 {
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.acard__dev {
  margin-top: 1px;
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.acard__genre {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f1f3f4;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-2);
}

.acard__ec {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
}

.app .acard__ec i {
  font-size: 16px;
}

.acard__desc {
  flex: 1;
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.acard__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.acard__meta {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.acard__meta li + li::before {
  content: "·";
  margin: 0 7px;
}

.acard__meta strong {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-weight: 600;
  color: var(--text);
}

.app .acard__meta i {
  font-size: 15px;
  color: #f4b400;
}

.acard__get {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 32px;
  padding: 0 14px 0 10px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: #0842a0;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.app .acard__get i {
  font-size: 18px;
}

.acard__get--paid {
  padding: 0 14px;
  font-variant-numeric: tabular-nums;
}

.acard:hover .acard__get {
  background: var(--blue);
  color: #fff;
}

.alist__empty {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 56px 20px;
  border: 1px dashed var(--line-2);
  border-radius: 20px;
  color: var(--muted);
  text-align: center;
}

.alist__empty[hidden] {
  display: none;
}

.app .alist__empty > i {
  font-size: 40px;
  color: var(--line-2);
}

/* Pagination */

.pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 36px;
}

.pager > a,
.pager > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
  transition: background 0.2s var(--ease);
}

.pager > a:hover {
  background: var(--hover);
}

.pager > [aria-current] {
  background: var(--blue);
  color: #fff;
}

.pager > [aria-current]:hover {
  background: #0a5cd0;
}

.pager > .pager__nav {
  gap: 2px;
  padding: 0 16px 0 10px;
  border: 1px solid var(--line-2);
}

.pager > a.pager__nav {
  padding: 0 10px 0 16px;
}

.pager__nav[aria-disabled] {
  opacity: 0.4;
}

.app .pager__nav i {
  font-size: 20px;
}

.pager__gap {
  color: var(--muted);
}

/* Sidebar */

.list .layout__side {
  margin-top: 40px;
}

.sim__rank {
  flex: none;
  width: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.relcats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.relcats a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text-2);
  transition: background 0.2s var(--ease);
}

.relcats a:hover {
  background: var(--hover);
}

.app .relcats i {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--c) 12%, #fff);
  color: var(--c);
  font-size: 19px;
}

@media (max-width: 1100px) {
  .cathead__stack {
    display: none;
  }

  .cathead,
  .cathead--cover {
    grid-template-columns: 1fr;
  }

  .cathead__cover {
    justify-self: stretch;
    width: 100%;
  }

  .cathead__cover img {
    height: 160px;
  }
}

@media (max-width: 600px) {
  .cathead {
    margin-top: 12px;
    padding: 24px 20px;
    border-radius: 22px;
  }

  .cathead__main {
    flex-direction: column;
    gap: 14px;
  }

  .cathead__ic {
    width: 52px;
    height: 52px;
    border-radius: 16px;
  }

  .cathead__ic i {
    font-size: 28px;
  }

  .cathead h1 {
    font-size: 28px;
  }

  .cathead__lead {
    font-size: 14px;
  }

  .chips {
    margin: 16px -16px 0;
    padding: 0 16px;
  }

  .toolbar {
    margin-top: 28px;
  }

  .toolbar > div:first-child {
    width: 100%;
  }

  .toolbar__controls {
    flex-wrap: nowrap;
    width: calc(100% + 32px);
    margin: 0 -16px;
    padding: 0 16px 2px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .toolbar__controls::-webkit-scrollbar {
    display: none;
  }

  .seg,
  .fchip {
    flex: none;
  }

  .alist {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .acard {
    padding: 16px;
  }

  .acard .ic {
    width: 56px;
    height: 56px;
    border-radius: 14px;
  }

  .acard .ic__sym {
    font-size: 30px;
    width: 30px;
  }

  .pager {
    gap: 4px;
  }

  .pager > a,
  .pager > span {
    min-width: 36px;
    height: 36px;
    font-size: 13.5px;
  }

  .pager__nav > span {
    display: none;
  }

  .pager > .pager__nav,
  .pager > a.pager__nav {
    padding: 0;
    width: 36px;
  }
}

/* ================= Shared page components ================= */

.row-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

.tile,
.chart__col li,
.ucard {
  position: relative;
}

.block__lead {
  max-width: 720px;
  margin: -6px 0 18px;
  font-size: 14px;
  color: var(--muted);
}

/* Charts ranking */

.ranks {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}

.ranks[hidden] {
  display: none;
}

.rank-row {
  position: relative;
  display: grid;
  grid-template-columns: 36px 56px minmax(0, 1fr) 96px 96px auto;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  transition: background 0.2s var(--ease);
}

.rank-row + .rank-row {
  border-top: 1px solid var(--line);
}

.rank-row:hover {
  background: var(--hover);
}

.rank-row__n {
  font-size: 17px;
  font-weight: 700;
  color: var(--muted);
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.rank-row:nth-child(-n + 3) .rank-row__n {
  color: var(--blue);
}

.rank-row .ic {
  width: 56px;
  height: 56px;
  border-radius: 14px;
}

.rank-row .ic__sym {
  font-size: 30px;
  width: 30px;
}

.rank-row .ic__word {
  font-size: 14px;
}

.rank-row h3 {
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-row p {
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-row__stat {
  display: flex;
  flex-direction: column;
  font-size: 13.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.rank-row__stat small {
  font-size: 11.5px;
  font-weight: 400;
  color: var(--muted);
}

.app .rank-row__stat i {
  display: inline;
  font-size: 14px;
  color: #f4b400;
  vertical-align: -2px;
}

.rank-row:hover .acard__get {
  background: var(--blue);
  color: #fff;
}

/* Category grid */

.catgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
}

.catgrid a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}

.catgrid a:hover {
  border-color: transparent;
  box-shadow: var(--shadow-2);
  transform: translateY(-2px);
}

.app .catgrid i {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--c) 12%, #fff);
  color: var(--c);
  font-size: 24px;
}

.catgrid strong {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
}

.catgrid span {
  font-size: 12.5px;
  color: var(--muted);
}

/* New releases */

.ngroup + .ngroup {
  margin-top: 36px;
}

.ngroup > h2 {
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.nlist {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nrow {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: start;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.nrow:hover {
  border-color: transparent;
  box-shadow: var(--shadow-2);
}

.nrow .ic {
  width: 56px;
  height: 56px;
  border-radius: 14px;
}

.nrow .ic__sym {
  font-size: 30px;
  width: 30px;
}

.nrow h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
}

.nrow__tag {
  padding: 2px 8px;
  border-radius: 999px;
  background: #e4f4e9;
  color: #146c34;
  font-size: 11.5px;
  font-weight: 600;
}

.nrow__tag--new {
  background: var(--blue-soft);
  color: #0842a0;
}

.nrow__meta {
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--muted);
}

.nrow ul {
  margin: 8px 0 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-2);
}

.nrow__side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
}

.nrow:hover .acard__get {
  background: var(--blue);
  color: #fff;
}

/* Page head (docs, articles) */

.pagehead {
  max-width: 820px;
  margin-top: 28px;
}

.pagehead__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
}

.pagehead h1 {
  margin-top: 10px;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.pagehead__lead {
  margin-top: 14px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-2);
}

.pagehead__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
}

.app .pagehead__eyebrow i {
  font-size: 18px;
  letter-spacing: normal;
  text-transform: none;
  font-family: "Material Symbols Rounded";
  font-style: normal;
  font-feature-settings: "liga";
  font-variation-settings: "FILL" 1;
  overflow: hidden;
  width: 18px;
}

.table-wrap {
  margin: 18px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.prose th,
.prose td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  color: var(--text-2);
}

.prose th {
  background: #f8f9fa;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
}

.prose tr + tr td,
.prose tbody tr:first-child td {
  border-top: 1px solid var(--line);
}

.app .pagehead__meta i {
  font-size: 17px;
  vertical-align: -3px;
  margin-right: 4px;
}

/* Docs layout with table of contents */

.doc {
  display: grid;
  grid-template-columns: 220px minmax(0, 760px);
  gap: 64px;
  margin-top: 40px;
}

.toc {
  position: sticky;
  top: 96px;
  align-self: start;
}

.toc p {
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.toc a {
  display: block;
  padding: 7px 14px;
  border-left: 2px solid var(--line);
  font-size: 13.5px;
  color: var(--muted);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.toc a:hover {
  color: var(--text);
}

.toc a.is-active {
  border-color: var(--blue);
  color: var(--blue);
  font-weight: 500;
}

.prose > :first-child {
  margin-top: 0;
}

.prose h2 {
  margin: 44px 0 12px;
  font-size: 23px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  scroll-margin-top: 96px;
}

.prose h3 {
  margin: 26px 0 8px;
  font-size: 16.5px;
  font-weight: 600;
  scroll-margin-top: 96px;
}

.prose p,
.prose li {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-2);
}

.prose p + p {
  margin-top: 14px;
}

.prose ul,
.prose ol {
  margin: 12px 0;
  padding-left: 22px;
}

.prose li + li {
  margin-top: 6px;
}

.prose a {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-color: rgba(11, 103, 230, 0.3);
  text-underline-offset: 3px;
}

.prose a:hover {
  text-decoration-color: currentColor;
}

.prose strong {
  font-weight: 600;
  color: var(--text);
}

.prose code {
  padding: 2px 6px;
  border-radius: 6px;
  background: #f1f3f4;
  font-size: 13px;
}

.prose figure {
  margin: 24px 0;
}

.prose figure img {
  display: block;
  width: 100%;
  border-radius: 18px;
}

.prose figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

.callout {
  display: flex;
  gap: 12px;
  margin: 22px 0;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--blue-soft);
  color: #0842a0;
}

.app .callout > i {
  font-size: 22px;
}

.prose .callout p {
  margin: 0;
  color: inherit;
  font-size: 14.5px;
  line-height: 1.65;
}

.callout--warn {
  background: #fef7e0;
  color: #7a4a00;
}

.callout--ok {
  background: #e4f4e9;
  color: #146c34;
}

/* Article */

.article__hero {
  margin: 28px 0 0;
  overflow: hidden;
  border-radius: 28px;
  aspect-ratio: 21 / 8;
  box-shadow: var(--shadow-2);
}

.article__hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.howto {
  counter-reset: step;
  display: grid;
  gap: 14px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
}

.prose .howto li {
  counter-increment: step;
  position: relative;
  margin: 0;
  padding: 18px 20px 18px 68px;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.howto li::before {
  content: counter(step);
  position: absolute;
  left: 20px;
  top: 18px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.howto li > strong:first-child,
.howto li > div > strong:first-child {
  display: block;
  margin-bottom: 2px;
}

/* Info cards (contact, careers, developers, security) */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.icard {
  position: relative;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}

.app .icard > i {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--c, #0b67e6) 12%, #fff);
  color: var(--c, #0b67e6);
  font-size: 24px;
}

.icard h3 {
  margin: 14px 0 0;
  font-size: 15.5px;
  font-weight: 600;
}

.prose .icard p,
.icard p {
  margin-top: 4px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}

.icard__link {
  display: inline-flex;
  margin-top: 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--blue);
}

.prose .icard__link {
  text-decoration: none;
}

.icard__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.icard__meta span {
  padding: 3px 10px;
  border-radius: 999px;
  background: #f1f3f4;
  font-size: 12px;
  color: var(--text-2);
}

.statrow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 24px 0;
}

.statrow div {
  padding: 18px 20px;
  border-radius: 18px;
  background: #f8f9fa;
}

.statrow strong {
  display: block;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.statrow span {
  font-size: 13px;
  color: var(--muted);
}

/* Search results */

.searchhead {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
}

.searchhead h1 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.searchhead h1 em {
  font-style: normal;
  color: var(--blue);
}

.searchhead p {
  margin-top: 4px;
  font-size: 13.5px;
  color: var(--muted);
}

/* 404 */

.notfound {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  max-width: 560px;
  margin: 0 auto;
  padding: 72px 0 24px;
  text-align: center;
}

.notfound__code {
  font-size: 120px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.06em;
  background: linear-gradient(135deg, #3ddc84, #22c3c9 45%, #3b82f6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.notfound h1 {
  margin-top: 16px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.notfound p:not(.notfound__code) {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

.notfound__search {
  display: flex;
  gap: 8px;
  width: 100%;
  margin-top: 28px;
}

.notfound__search input {
  flex: 1;
  min-width: 0;
  height: 52px;
  padding: 0 20px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.notfound__search input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px var(--blue-soft);
}

.notfound .tags {
  justify-content: center;
}

@media (max-width: 960px) {
  .doc {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .toc {
    position: static;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .toc p {
    display: none;
  }

  .toc a {
    flex: none;
    padding: 6px 14px;
    border: 1px solid var(--line-2);
    border-radius: 999px;
  }

  .toc a.is-active {
    background: var(--blue-soft);
    border-color: transparent;
  }

  .statrow {
    grid-template-columns: repeat(2, 1fr);
  }

  .rank-row {
    grid-template-columns: 28px 52px minmax(0, 1fr) 80px auto;
  }

  .rank-row__stat--dl {
    display: none;
  }
}

@media (max-width: 600px) {
  .pagehead h1 {
    font-size: 30px;
  }

  .pagehead__lead {
    font-size: 15.5px;
  }

  .toc {
    margin: 0 -16px;
    padding: 0 16px;
  }

  .article__hero {
    aspect-ratio: 16 / 9;
    border-radius: 20px;
  }

  .rank-row {
    grid-template-columns: 22px 48px minmax(0, 1fr) auto;
    gap: 12px;
    padding: 10px 14px;
  }

  .rank-row .ic {
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }

  .rank-row__stat {
    display: none;
  }

  .nrow {
    grid-template-columns: 48px minmax(0, 1fr);
    padding: 14px;
  }

  .nrow .ic {
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }

  .nrow__side {
    grid-column: 2;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .notfound__code {
    font-size: 88px;
  }

  .searchhead h1 {
    font-size: 24px;
  }
}

/* ---------- Collection page ---------- */

.picks {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}

.pick {
  position: relative;
  display: grid;
  grid-template-columns: 28px 72px minmax(0, 1fr) auto;
  align-items: start;
  gap: 18px;
  padding: 22px 22px 22px 18px;
  transition: background 0.2s var(--ease);
}

.pick + .pick {
  border-top: 1px solid var(--line);
}

.pick:hover {
  background: var(--hover);
}

.pick__n {
  padding-top: 22px;
  font-size: 17px;
  font-weight: 700;
  text-align: center;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.pick:nth-child(-n + 3) .pick__n {
  color: var(--blue);
}

.pick > .ic {
  width: 72px;
  height: 72px;
}

.pick__body h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.pick__meta {
  margin-top: 2px;
  font-size: 13px;
  color: var(--muted);
}

.pick__why {
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-2);
}

.pick__facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  font-size: 12.5px;
  color: var(--muted);
}

.pick__facts li {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.pick__facts li:first-child {
  font-weight: 600;
  color: var(--text-2);
}

.app .pick__facts i {
  font-size: 15px;
  color: #f4b400;
  font-variation-settings: 'FILL' 1;
}

.pick__badge {
  padding: 2px 9px;
  border-radius: 999px;
  background: #e6f4ea;
  color: #137333;
  font-weight: 600;
}

.pick > .acard__get {
  margin-top: 20px;
}

.pick:hover .acard__get {
  background: var(--blue);
  color: #fff;
}

.collections:has(> .coll:nth-child(3):last-child) {
  grid-template-columns: repeat(3, 1fr);
}

/* ---------- Collections hub ---------- */

.collfeat {
  margin-top: 28px;
  color: inherit;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.collfeat:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
}

.collfeat h2 {
  margin-top: 4px;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.collfeat__cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 40px;
  margin-top: 18px;
  padding: 0 14px 0 20px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.collfeat__cta svg {
  width: 18px;
  height: 18px;
  transition: transform 0.25s var(--ease);
}

.collfeat:hover .collfeat__cta svg {
  transform: translateX(3px);
}

.block__head h2 .block__sub {
  margin-left: 8px;
  font-weight: 400;
  letter-spacing: 0;
}

.coll[hidden] {
  display: none;
}

.coll__icons .ic__sym {
  font-size: 24px;
  width: 24px;
}

@media (max-width: 960px) {
  .collections:has(> .coll:nth-child(3):last-child) {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .pick {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 4px 14px;
    padding: 18px 16px;
  }

  .pick__n {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    pointer-events: none;
    display: grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    padding: 0 5px;
    border-radius: 999px;
    background: #fff;
    box-shadow: var(--shadow-1);
    font-size: 12px;
  }

  .pick > .ic {
    width: 56px;
    height: 56px;
  }

  .pick__n + .ic {
    margin-top: 6px;
  }

  .pick > .acard__get {
    grid-column: 2;
    justify-self: start;
    margin-top: 10px;
  }

  .collections:has(> .coll:nth-child(3):last-child) {
    grid-template-columns: 1fr;
  }

  .collfeat h2 {
    font-size: 26px;
  }

  .block__head:has(.js-kind) {
    flex-wrap: wrap;
    gap: 12px;
  }
}

/* ================= Article page ================= */

.readbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: 3px;
  pointer-events: none;
}

.readbar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #3ddc84, #22c3c9 45%, #3b82f6);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* Header */

.arthead {
  max-width: 860px;
  margin-top: 28px;
}

.arthead__cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}

.app .arthead__cat i {
  font-size: 18px;
  letter-spacing: 0;
  text-transform: none;
}

.arthead h1 {
  margin-top: 12px;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.arthead__dek {
  margin-top: 14px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-2);
}

.arthead__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.byline {
  display: flex;
  align-items: center;
  gap: 12px;
}

.byline__avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3ddc84, #22c3c9 45%, #3b82f6);
  color: #fff;
}

.app .byline__avatar i {
  font-size: 22px;
}

.byline strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

.byline strong a:hover {
  color: var(--blue);
}

.byline span {
  font-size: 12.5px;
  color: var(--muted);
}

.share {
  display: flex;
  align-items: center;
  gap: 8px;
}

.share__btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--c, #f1f3f4);
  color: var(--text-2);
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.share__btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-1);
}

.share__btn img {
  width: 17px;
  height: 17px;
}

.app .share__btn i {
  font-size: 19px;
}

.share__btn.is-copied {
  background: #e4f4e9;
  color: #1f8a46;
}

.artcover {
  margin: 44px 0 0;
}

.artcover img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 20px;
}

.artcover figcaption {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--muted);
}

/* Body */

.artbody {
  max-width: 740px;
}

.prose.artbody {
  margin-top: 32px;
}

.tldr {
  margin: 0 0 32px;
  padding: 20px 22px;
  border-radius: 20px;
  background: linear-gradient(135deg, #eef4ff, #f2f9fb);
}

.prose .tldr h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 15px;
  letter-spacing: 0;
}

.app .tldr h2 i {
  font-size: 20px;
  color: var(--blue);
}

.prose .tldr ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.prose .tldr li {
  position: relative;
  padding-left: 26px;
  font-size: 14.5px;
  line-height: 1.6;
}

.prose .tldr li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 6px;
  width: 11px;
  height: 6px;
  border-left: 2px solid #1f8a46;
  border-bottom: 2px solid #1f8a46;
  transform: rotate(-45deg);
}

.prose blockquote {
  margin: 30px 0;
  padding: 4px 0 4px 22px;
  border-left: 4px solid;
  border-image: linear-gradient(#3ddc84, #3b82f6) 1;
}

.prose blockquote p {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--text);
}

.prose blockquote cite {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  font-style: normal;
  color: var(--muted);
}

/* Inline app card */

.appembed {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  transition: box-shadow 0.25s var(--ease);
}

.appembed:hover {
  box-shadow: var(--shadow-2);
}

.appembed > .ic {
  width: 60px;
  height: 60px;
}

.appembed > div {
  flex: 1;
  min-width: 0;
}

.prose .appembed strong {
  display: block;
  font-size: 15.5px;
}

.prose .appembed p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.appembed .acard__get {
  flex-shrink: 0;
}

.appembed:hover .acard__get {
  background: var(--blue);
  color: #fff;
}

.prose .appembed a.row-link {
  text-decoration: none;
}

/* Step mock-ups */

.prose .howto--demo li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 236px;
  gap: 20px;
  align-items: center;
}

.demo {
  padding: 14px;
  border-radius: 16px;
  background: #f1f3f4;
  font-size: 13px;
  line-height: 1.4;
}

.prose .demo__title {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.demo__row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-1);
}

.demo__row > div {
  flex: 1;
  min-width: 0;
}

.demo b,
.demo small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demo b {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
}

.demo small {
  font-size: 11.5px;
  color: var(--muted);
}

.demo__ic {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.app .demo__ic i {
  font-size: 20px;
}

.demo__ic--green { background: #e4f4e9; color: #1f8a46; }
.demo__ic--blue { background: var(--blue-soft); color: var(--blue); }

.demo__bar {
  display: block;
  height: 4px;
  margin-top: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #3ddc84, #22c3c9);
}

.demo__switch {
  position: relative;
  flex-shrink: 0;
  width: 36px;
  height: 20px;
  border-radius: 999px;
  background: var(--blue);
}

.demo__switch::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
}

.demo--dialog {
  display: grid;
  justify-items: center;
  padding: 18px 14px 14px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  text-align: center;
}

.demo--dialog .ic {
  width: 44px;
  height: 44px;
  margin-bottom: 8px;
}

.demo--dialog .ic svg {
  width: 24px;
  height: 24px;
}

.demo__btns {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
  width: 100%;
  margin-top: 12px;
}

.demo__btns span {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
}

.demo__btns .is-primary {
  background: var(--blue);
  color: #fff;
}

/* Signature comparison */

.fp {
  margin: 20px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fafbfc;
}

.fp__row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.fp__row + .fp__row {
  margin-top: 10px;
}

.fp__row span {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
}

.prose .fp code {
  display: block;
  padding: 8px 12px;
  overflow-x: auto;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 12.5px;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.prose .fp__ok {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: #146c34;
}

.app .fp__ok i {
  font-size: 20px;
  color: #1f8a46;
}

/* Troubleshooting cards */

.issues {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.issue {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.app .issue .trust__ic i {
  font-size: 22px;
}

.prose .issue h3 {
  margin: 14px 0 6px;
  font-size: 15px;
}

.prose .issue p {
  font-size: 13.5px;
  line-height: 1.6;
}

/* Article end */

.artend {
  display: grid;
  gap: 24px;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.artend__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.artend__row .tags {
  margin: 0;
}

.helpful {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-radius: 18px;
  background: #f8f9fa;
}

.helpful > p {
  font-size: 15px;
  font-weight: 600;
}

.helpful__btns {
  display: flex;
  gap: 8px;
}

.helpful__btns .btn {
  background: #fff;
  border: 1px solid var(--line-2);
}

.helpful__btns .btn:hover {
  background: var(--hover);
}

.helpful__thanks {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #146c34;
}

.app .helpful__thanks i {
  font-size: 20px;
  color: #e8453c;
  font-variation-settings: "FILL" 1;
}

.helpful__thanks[hidden],
.helpful.is-done .helpful__btns {
  display: none;
}

.author {
  display: flex;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
}

.author .byline__avatar {
  width: 56px;
  height: 56px;
}

.author__label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.author strong {
  display: block;
  margin-top: 2px;
  font-size: 16px;
  font-weight: 600;
}

.author p:not(.author__label) {
  margin-top: 6px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-2);
}

.author a {
  display: inline-block;
  margin-top: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--blue);
}

/* Previous / next */

.pn {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.pn__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  transition: box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.pn__item:hover {
  border-color: transparent;
  box-shadow: var(--shadow-2);
}

.pn__item--next {
  flex-direction: row-reverse;
  text-align: right;
}

.pn__img {
  flex-shrink: 0;
  width: 88px;
  height: 66px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
}

.pn__item div {
  min-width: 0;
}

.pn__label {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
}

.app .pn__label i {
  font-size: 16px;
}

.pn__item strong {
  display: -webkit-box;
  margin-top: 2px;
  overflow: hidden;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Sidebar */

.side--toc .toc {
  position: static;
  padding: 0 8px 6px;
}

.poplist {
  margin: 0;
  padding: 0 4px 4px;
  list-style: none;
  counter-reset: pop;
}

.poplist a {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 8px 4px;
  border-radius: 12px;
  transition: background 0.2s var(--ease);
}

.poplist a:hover {
  background: var(--hover);
}

.poplist__img {
  position: relative;
  height: 48px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
}

.poplist li {
  counter-increment: pop;
}

.poplist__img::after {
  content: counter(pop);
  position: absolute;
  left: -4px;
  top: -4px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--text);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.poplist strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.poplist span {
  font-size: 12px;
  color: var(--muted);
}

.side .tags {
  margin: 0;
  padding: 0 8px 8px;
}

@media (max-width: 960px) {
  .side--toc {
    display: none;
  }

  .layout__side:has(.side--toc) .side:last-child {
    grid-column: auto;
  }

  .issues {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .arthead {
    margin-top: 20px;
  }

  .arthead h1 {
    font-size: 28px;
  }

  .arthead__dek {
    font-size: 15.5px;
  }

  .artcover {
    margin-top: 28px;
  }

  .artcover img {
    border-radius: 16px;
  }

  .prose .howto--demo li {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .fp__row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .prose blockquote p {
    font-size: 17px;
  }

  .pn {
    grid-template-columns: minmax(0, 1fr);
  }

  .pn__img {
    width: 72px;
    height: 56px;
  }

  .helpful {
    padding: 16px;
  }
}

/* ---------- Download transit page ---------- */

.download {
  max-width: 720px;
  padding-bottom: 48px;
}

.download .crumbs {
  margin-bottom: 16px;
}

.dlstage {
  display: grid;
  gap: 18px;
  margin: 0 0 36px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, #f8fbff, #fff 50%);
}

.dlstage__app {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.dlstage__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
}

.dlstage__icon svg,
.dlstage__icon img {
  width: 30px;
  height: 30px;
}

.dlstage h1 {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.dlstage__sub {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
}

.dlstage__sub a {
  color: var(--blue);
  font-weight: 600;
}

.dlstage__panel {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.dlstage__status {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.dlstage__ring {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 38%, #ffffff 0%, #f5f8fd 58%, #e8f0fb 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 10px 24px rgba(11, 103, 230, 0.1);
}

.dlstage__ring::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(11, 103, 230, 0.06);
  pointer-events: none;
}

.dlstage__ring-svg {
  position: relative;
  z-index: 1;
  width: 80px;
  height: 80px;
  transform: rotate(-90deg);
  overflow: visible;
}

.dlstage__ring-soft,
.dlstage__ring-bg,
.dlstage__ring-fg {
  fill: none;
}

.dlstage__ring-soft {
  stroke: rgba(11, 103, 230, 0.07);
  stroke-width: 9;
}

.dlstage__ring-bg {
  stroke: #d5e3f7;
  stroke-width: 5;
}

.dlstage__ring-fg {
  stroke: url(#dlRingGrad);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 0.45s var(--ease), stroke 0.35s var(--ease);
}

.dlstage__ring.is-active .dlstage__ring-fg {
  animation: dl-ring-breathe 1.8s var(--ease) infinite;
}

.dlstage__ring.is-complete {
  background:
    radial-gradient(circle at 50% 38%, #ffffff 0%, #f3faf5 58%, #e5f5eb 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 10px 24px rgba(30, 142, 62, 0.12);
}

.dlstage__ring.is-complete::before {
  box-shadow: inset 0 0 0 1px rgba(30, 142, 62, 0.08);
}

.dlstage__ring.is-complete .dlstage__ring-soft {
  stroke: rgba(30, 142, 62, 0.08);
}

.dlstage__ring.is-complete .dlstage__ring-bg {
  stroke: #cfe9d8;
}

.dlstage__ring.is-complete .dlstage__ring-fg {
  stroke: #1e8e3e;
  animation: none;
}

.dlstage__pct {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  pointer-events: none;
}

.dlstage__pct-num {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  transform: translateY(1px);
}

.dlstage__pct strong {
  font-size: 20px;
  font-weight: 780;
  letter-spacing: -0.04em;
  color: var(--text);
}

.dlstage__pct-unit {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}

.dlstage__ring.is-complete .dlstage__pct strong {
  color: #167a38;
}

.dlstage__ring.is-complete .dlstage__pct-unit {
  color: #3d9a5f;
}

@keyframes dl-ring-breathe {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.82;
  }
}

.dlstage__now {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.dlstage__hint {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.45;
}

.dlstage__hint--done {
  color: var(--text-2);
}

.dlstage__hint--done a {
  color: var(--blue);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.dlcheck {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dlcheck li {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-size: 13.5px;
  transition: color 0.25s var(--ease);
}

.dlcheck li.is-done,
.dlcheck li.is-active {
  color: var(--text);
}

.dlcheck__mark {
  position: relative;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--line-2);
  border-radius: 50%;
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.dlcheck li.is-active .dlcheck__mark {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(11, 103, 230, 0.12);
}

.dlcheck li.is-active .dlcheck__mark::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--blue);
  animation: dl-pulse 1s var(--ease) infinite;
}

.dlcheck li.is-done .dlcheck__mark {
  border-color: transparent;
  background: #e8f5ee;
}

.dlcheck li.is-done .dlcheck__mark::after {
  content: "";
  position: absolute;
  left: 4.5px;
  top: 2.5px;
  width: 4px;
  height: 7px;
  border: solid #1e8e3e;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
  animation: none;
}

@keyframes dl-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(0.85);
  }
}

.dlstage__meta {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  text-align: center;
}

.dlstage__meta code {
  font-size: 12px;
  color: var(--text-2);
}

.dlmore {
  display: grid;
  gap: 8px;
}

.dl-verify {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.dl-verify code {
  display: inline-block;
  margin-top: 2px;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--hover);
  font-size: 12px;
  word-break: break-all;
}

.dl-more {
  margin: 16px 0 0;
}

.dl-more a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--blue);
  font-weight: 600;
  font-size: 14px;
}

.dl-more i {
  font-size: 16px;
}

@media (max-width: 600px) {
  .download .crumbs {
    margin-bottom: 10px;
  }

  .dlstage {
    padding: 16px;
    border-radius: 16px;
    gap: 14px;
  }

  .dlstage__app {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
  }

  .dlstage__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }

  .dlstage__icon svg,
  .dlstage__icon img {
    width: 26px;
    height: 26px;
  }

  .dlstage h1 {
    font-size: 18px;
  }

  .dlstage__panel {
    padding: 14px;
  }

  .dlstage__status {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 12px;
  }

  .dlstage__ring,
  .dlstage__ring-svg {
    width: 68px;
    height: 68px;
  }

  .dlstage__ring::before {
    inset: 6px;
  }

  .dlstage__pct strong {
    font-size: 17px;
  }

  .dlstage__pct-unit {
    font-size: 10px;
  }

  .dlstage__now {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dlcheck li.is-active .dlcheck__mark::after {
    animation: none;
  }

  .dlstage__ring.is-active .dlstage__ring-fg {
    animation: none;
  }

  .dlstage__ring-fg {
    transition: none;
  }
}

/* Screenshot gallery (detail page) */
.gallery {
  position: relative;
  --shot-h: 400px;
}

.gallery .shots {
  scrollbar-width: none;
  grid-auto-columns: max-content;
  gap: 12px;
  padding: 6px 4px 14px;
  cursor: grab;
}

.gallery .shots::-webkit-scrollbar {
  display: none;
}

.gallery .shots.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
}

.gallery .shots.is-dragging .shot--img {
  pointer-events: none;
}

.shot--img {
  display: block;
  height: var(--shot-h);
  width: auto;
  aspect-ratio: auto;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(100deg, #eef0f3 30%, #f7f8fa 50%, #eef0f3 70%) 0 0 / 300% 100%;
  box-shadow: 0 0 0 1px rgba(60, 64, 67, 0.08), 0 1px 3px rgba(60, 64, 67, 0.1);
  animation: shot-shimmer 1.4s linear infinite;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  outline-offset: 3px;
}

.shot--img.is-loaded {
  animation: none;
  background: #f1f3f4;
}

.shot--img img {
  display: block;
  height: 100%;
  width: auto;
  max-width: none;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s var(--ease), transform 0.5s var(--ease);
  user-select: none;
  -webkit-user-drag: none;
}

.shot--img.is-loaded img {
  opacity: 1;
}

@media (hover: hover) and (pointer: fine) {
  .shot--img:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 0 1px rgba(60, 64, 67, 0.08), 0 12px 28px rgba(60, 64, 67, 0.22);
  }

  .shot--img:hover img {
    transform: scale(1.02);
  }
}

@keyframes shot-shimmer {
  to { background-position: -300% 0; }
}

.gallery__nav {
  position: absolute;
  top: calc(50% - 7px);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  box-shadow: var(--shadow-2);
  cursor: pointer;
  opacity: 0;
  transform: translateY(-50%) scale(0.85);
  transition: opacity 0.2s, transform 0.2s var(--ease), background 0.2s;
  pointer-events: none;
}

.gallery__nav i {
  font-size: 26px;
}

.gallery__nav:hover {
  background: #fff;
}

.gallery__nav--prev { left: -14px; }
.gallery__nav--next { right: -14px; }

@media (hover: hover) and (pointer: fine) {
  .gallery:hover:has(.shots:is([data-scroll="left"], [data-scroll="both"])) .gallery__nav--prev,
  .gallery:hover:has(.shots:is([data-scroll="right"], [data-scroll="both"])) .gallery__nav--next {
    opacity: 1;
    transform: translateY(-50%) scale(1);
    pointer-events: auto;
  }
}

@media (max-width: 900px) {
  .gallery { --shot-h: 320px; }
}

@media (max-width: 600px) {
  .gallery { --shot-h: 260px; }
  .gallery .shots { cursor: auto; }
}

/* Screenshot lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  overflow: hidden;
}

.lightbox::backdrop {
  background: rgba(10, 11, 14, 0.9);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.lightbox[open] {
  display: grid;
  grid-template-rows: auto 1fr auto;
  animation: lb-in 0.25s var(--ease);
}

.lightbox[open]::backdrop {
  animation: lb-fade 0.25s var(--ease);
}

@keyframes lb-in {
  from { opacity: 0; transform: scale(0.98); }
}

@keyframes lb-fade {
  from { opacity: 0; }
}

.lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 600;
}

.lightbox__title {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  opacity: 0.9;
}

.lightbox__count {
  font-variant-numeric: tabular-nums;
  opacity: 0.75;
}

.lightbox__btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
}

.lightbox__btn:hover {
  background: rgba(255, 255, 255, 0.24);
}

.lightbox__btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.lightbox__btn i {
  font-size: 26px;
}

.lightbox__stage {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 0;
  padding: 0 18px;
  touch-action: pan-y pinch-zoom;
}

.lightbox__frame {
  display: grid;
  place-items: center;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.lightbox__img {
  max-width: 100%;
  max-height: calc(100dvh - 170px);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  object-fit: contain;
  transition: opacity 0.2s, transform 0.25s var(--ease);
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox__img.is-leaving-left { opacity: 0; transform: translateX(-40px); }
.lightbox__img.is-leaving-right { opacity: 0; transform: translateX(40px); }

.lightbox__thumbs {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 14px 18px 18px;
  overflow-x: auto;
  scrollbar-width: none;
}

.lightbox__thumbs::-webkit-scrollbar {
  display: none;
}

.lightbox__thumbs button {
  flex: none;
  height: 64px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  background: #222;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s, border-color 0.2s;
}

.lightbox__thumbs button[aria-current] {
  border-color: #fff;
  opacity: 1;
}

.lightbox__thumbs button:hover {
  opacity: 0.85;
}

.lightbox__thumbs img {
  display: block;
  height: 100%;
  width: auto;
}

@media (max-width: 600px) {
  .lightbox__stage {
    grid-template-columns: 1fr;
    padding: 0 8px;
  }

  .lightbox__stage > .lightbox__btn {
    display: none;
  }

  .lightbox__thumbs button {
    height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shot--img,
  .shot--img img,
  .lightbox__img,
  .lightbox[open],
  .lightbox[open]::backdrop {
    animation: none;
    transition: none;
  }
}

/* Skip link (keyboard users) */
.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: 10px;
  background: #1a73e8;
  color: #fff;
  font-weight: 600;
  transition: top 0.15s;
}

.skip-link:focus {
  top: 12px;
}

/* Story covers as real images */
img.story__img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
