:root {
  --bg: #f5f3ee;
  --surface: #ffffff;
  --surface-2: #faf9f6;
  --ink: #15171c;
  --ink-2: #3a3f49;
  --muted: #6b717c;
  --line: #e7e3da;
  --accent: #0d7a63;
  --accent-ink: #0a5c4b;
  --accent-soft: #e2f1ec;
  --game: #6a4bd8;
  --game-soft: #ece7fb;
  --ios: #2563c9;
  --ios-soft: #e4edfb;
  --star: #f2a31b;
  --star-off: #ddd8cc;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(21, 23, 28, .04), 0 6px 24px -12px rgba(21, 23, 28, .18);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --page: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.2;
  letter-spacing: -.01em;
}

button,
input {
  font: inherit;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(160%) blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: var(--page);
  height: 64px;
  margin: 0 auto;
  padding: 0 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -.02em;
}

.brand-logo {
  height: 34px;
  width: auto;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  letter-spacing: 0;
}

.primary-nav {
  display: flex;
  gap: 4px;
}

.primary-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink-2);
  font-weight: 600;
  font-size: 14px;
}

.primary-nav a:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.primary-nav a.is-active {
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.header-search {
  position: relative;
  flex: 1;
  max-width: 360px;
  margin-left: auto;
}

.header-search svg {
  position: absolute;
  top: 50%;
  left: 12px;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  fill: none;
  stroke: var(--muted);
  stroke-width: 2;
  stroke-linecap: round;
}

.header-search input {
  width: 100%;
  height: 40px;
  padding: 0 14px 0 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink);
  outline: none;
}

.header-search input:focus {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
}

/* ---------- layout ---------- */

.page {
  max-width: var(--page);
  margin: 0 auto;
  padding: 28px 20px 64px;
}

.page-narrow {
  max-width: 820px;
}

.section {
  margin-top: 44px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.section-head h2 {
  font-size: 22px;
}

.section-sub {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.more {
  flex-shrink: 0;
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
}

.more:hover {
  text-decoration: underline;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.page-head {
  margin-bottom: 24px;
}

.page-head h1 {
  font-size: clamp(28px, 4vw, 38px);
}

.page-lead {
  margin: 10px 0 0;
  color: var(--muted);
  max-width: 640px;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
}

.crumbs a:hover {
  color: var(--accent);
}

.crumbs > * + *::before {
  content: "/";
  margin-right: 6px;
  color: var(--star-off);
}

.crumbs span {
  color: var(--ink-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 260px;
}

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 44px 44px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 90% 10%, rgba(13, 122, 99, .16), transparent 45%),
    linear-gradient(135deg, #ffffff 0%, #eef6f2 100%);
  border: 1px solid var(--line);
}

.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  letter-spacing: -.03em;
}

.hero-lead {
  margin: 14px 0 22px;
  color: var(--ink-2);
  font-size: 17px;
  max-width: 520px;
}

.hero-search {
  display: flex;
  gap: 8px;
  max-width: 520px;
  margin-top: 16px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  padding: 0 16px;
  border: 0;
  background: transparent;
  outline: none;
}

.hero-search button {
  height: 42px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.hero-search button:hover {
  background: var(--accent-ink);
}

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

.hero-chips a {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .8);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
}

.hero-chips a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 340px;
  margin-left: auto;
  transform: rotate(-6deg);
}

.hero-mosaic img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 24%;
  background: #fff;
  box-shadow: 0 14px 30px -14px rgba(21, 23, 28, .35);
}

.hero-mosaic .m1,
.hero-mosaic .m4,
.hero-mosaic .m7 {
  transform: translateY(18px);
}

/* ---------- ad slots ---------- */

.ad-slot {
  margin: 20px 0;
  text-align: center;
}

.ad-slot::before {
  content: "Advertisement";
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.ad-slot > div {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.ad-slot ins.adsbygoogle {
  max-width: 100%;
}

.detail-main > .ad-slot {
  margin: 0;
}

/* ---------- icons, stars ---------- */

.app-icon {
  flex-shrink: 0;
  border-radius: 22.5%;
  background: var(--surface-2);
  border: 1px solid rgba(21, 23, 28, .06);
  object-fit: cover;
  color: transparent;
  font-size: 0;
}

.stars {
  position: relative;
  display: inline-block;
  color: var(--star-off);
  font-size: 13px;
  line-height: 1;
  letter-spacing: 1px;
  white-space: nowrap;
}

.stars::before {
  content: "★★★★★";
}

.stars i {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--r, 0%);
  overflow: hidden;
  color: var(--star);
  font-style: normal;
}

.stars i::before {
  content: "★★★★★";
}

/* ---------- ranked rows ---------- */

.chart-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.chart-panel,
.panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.rank-list,
.rank-grid,
.side-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rank-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
  padding: 8px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.rank-list li + li,
.side-list li + li {
  border-top: 1px solid var(--line);
}

.rank-grid li {
  border-bottom: 1px solid var(--line);
}

.app-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 4px;
  border-radius: var(--radius-sm);
}

.app-row:hover .row-name {
  color: var(--accent);
}

.app-row .app-icon {
  width: 56px;
  height: 56px;
}

.side-list .row-cat {
  display: none;
}

.side-list .app-row .app-icon {
  width: 48px;
  height: 48px;
}

.row-rank {
  width: 26px;
  flex-shrink: 0;
  color: var(--muted);
  font-weight: 800;
  font-size: 17px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

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

.row-name {
  overflow: hidden;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-meta {
  display: flex;
  gap: 8px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.row-meta > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
}

.row-cat {
  flex-shrink: 0;
}

.row-cat::before {
  content: "·";
  margin-right: 8px;
}

.row-score {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 13px;
}

.row-score svg {
  width: 14px;
  height: 14px;
  fill: var(--star);
}

/* ---------- tiles ---------- */

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}

.app-tile {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform .15s ease, box-shadow .15s ease;
}

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

.app-tile .app-icon {
  width: 72px;
  height: 72px;
  margin-bottom: 10px;
}

.tile-name {
  display: -webkit-box;
  overflow: hidden;
  font-weight: 650;
  line-height: 1.3;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tile-dev {
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tile-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 6px;
  font-size: 13px;
}

/* ---------- feature cards ---------- */

.feature-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 1fr);
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  scroll-snap-align: start;
  transition: box-shadow .15s ease;
}

.feature-card:hover {
  box-shadow: var(--shadow);
}

.feature-head {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.feature-head > span {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.feature-head .app-icon {
  width: 64px;
  height: 64px;
}

.feature-name {
  overflow: hidden;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.feature-summary {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink-2);
  font-size: 14px;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.feature-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.feature-foot .tile-rating {
  padding: 0;
}

.feature-go {
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 13px;
}

/* ---------- categories ---------- */

.browse {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
}

.browse .cat-grid {
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
}

.cat-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  font-weight: 600;
  font-size: 14px;
}

.cat-chip:hover {
  border-color: var(--accent);
}

.cat-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 800;
}

.cat-chip.is-game .cat-mark {
  background: var(--game-soft);
  color: var(--game);
}

.cat-chip.is-game:hover {
  border-color: var(--game);
}

.cat-chip.is-ios .cat-mark {
  background: var(--ios-soft);
  color: var(--ios);
}

.cat-chip.is-ios:hover {
  border-color: var(--ios);
}

.tab-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-top: 20px;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.tab-strip::-webkit-scrollbar {
  display: none;
}

.tab-strip a {
  flex-shrink: 0;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 600;
}

.tab-strip a:hover {
  border-color: var(--accent);
}

.tab-strip a.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

/* ---------- pager ---------- */

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

.pager-btn {
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-weight: 600;
}

.pager-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.pager-info {
  color: var(--muted);
  font-size: 14px;
}

/* ---------- details ---------- */

.app-hero {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(135deg, #fff 30%, #f0f7f4 100%);
}

.hero-icon {
  width: 128px;
  height: 128px;
  box-shadow: 0 12px 28px -14px rgba(21, 23, 28, .4);
}

.app-hero-body {
  min-width: 0;
}

.app-hero h1 {
  font-size: clamp(24px, 3.4vw, 34px);
  overflow-wrap: anywhere;
}

.app-dev {
  margin: 4px 0 0;
  color: var(--accent);
  font-weight: 600;
}

.app-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 0;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.app-facts li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 0 20px;
  border-left: 1px solid var(--line);
}

.app-facts li:first-child {
  padding-left: 0;
  border-left: 0;
}

.app-facts b,
.fact-link {
  font-size: 16px;
  font-weight: 700;
}

.fact-link {
  color: var(--accent);
}

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

.store-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.store-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 190px;
  padding: 10px 18px;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  line-height: 1.15;
}

.store-btn:hover {
  background: var(--accent-ink);
}

.store-btn.is-dark {
  background: var(--ink);
}

.store-btn.is-dark:hover {
  background: #000;
}

.store-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.store-btn span {
  display: flex;
  flex-direction: column;
}

.store-btn small {
  font-weight: 500;
  font-size: 11px;
  opacity: .85;
}

.download-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 28px;
  border-radius: 24px;
  background: var(--accent-soft);
  border: 1px solid rgba(13, 122, 99, .18);
}

.download-copy h2 {
  font-size: 22px;
}

.download-copy p {
  max-width: 460px;
  margin: 6px 0 0;
  color: var(--ink-2);
  font-size: 14px;
}

.download-actions {
  display: flex;
  flex-shrink: 0;
  gap: 10px;
}

.download-none {
  margin: 0;
  color: var(--muted);
}

.panel.shots {
  min-width: 0;
}

.shot-rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.shot-rail img {
  flex-shrink: 0;
  height: 340px;
  width: auto;
  min-width: 191px;
  border: 1px solid var(--line);
  color: transparent;
  font-size: 0;
  border-radius: 14px;
  background: linear-gradient(100deg, var(--surface-2) 30%, #efece5 50%, var(--surface-2) 70%) 0 0 / 300% 100%;
  animation: shot-loading 1.4s ease-in-out infinite;
  scroll-snap-align: start;
}

.shot-rail img.is-loaded {
  min-width: 0;
  background: var(--surface-2);
  animation: none;
}

@keyframes shot-loading {
  to {
    background-position: -150% 0;
  }
}

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

.detail-main,
.detail-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.detail-side {
  position: sticky;
  top: 84px;
}

.panel h2 {
  margin-bottom: 14px;
  font-size: 19px;
}

.description {
  position: relative;
  color: var(--ink-2);
  overflow-wrap: anywhere;
}

.description p {
  margin: 0 0 12px;
}

.description a {
  color: var(--accent);
  text-decoration: underline;
}

.description.is-clamped {
  max-height: 260px;
  overflow: hidden;
}

.description.is-clamped::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 80px;
  background: linear-gradient(rgba(255, 255, 255, 0), #fff);
}

.text-btn {
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font-weight: 700;
  cursor: pointer;
}

.rating-summary {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 28px;
  align-items: center;
}

.score-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.score-box strong {
  font-size: 56px;
  line-height: 1;
  letter-spacing: -.03em;
}

.score-box .stars {
  font-size: 17px;
}

.score-box small {
  color: var(--muted);
}

.bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bars li {
  display: grid;
  grid-template-columns: 14px 1fr 48px;
  gap: 10px;
  align-items: center;
  font-size: 13px;
}

.bar-label {
  color: var(--muted);
  font-weight: 700;
}

.bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
}

.bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.bar-value {
  color: var(--muted);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.reviews {
  display: flex;
  flex-direction: column;
}

.review {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.review:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

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

.avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-weight: 800;
}

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

.review-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  color: var(--muted);
  font-size: 12px;
}

.review p {
  margin: 10px 0 0;
  color: var(--ink-2);
}

.review-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.review-tags li {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

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

.info-grid > div {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.info-grid dt {
  color: var(--muted);
  font-size: 12px;
}

.info-grid dd {
  margin: 2px 0 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.info-grid a {
  color: var(--accent);
}

/* ---------- content pages ---------- */

.prose-card {
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
}

.prose-card h1 {
  font-size: clamp(28px, 4vw, 36px);
}

.prose-card h2 {
  margin: 28px 0 8px;
  font-size: 19px;
}

.prose-card p {
  color: var(--ink-2);
}

.empty-state {
  padding: 48px 0;
}

.empty-state h1 {
  font-size: clamp(28px, 4vw, 40px);
}

.empty-state .more {
  display: inline-block;
  margin-top: 20px;
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  max-width: var(--page);
  margin: 0 auto;
  padding: 40px 20px 24px;
}

.footer-brand strong {
  font-size: 18px;
}

.footer-brand p {
  max-width: 340px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}

.footer-title {
  color: var(--ink);
  font-weight: 700;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-copy {
  max-width: var(--page);
  margin: 0 auto;
  padding: 16px 20px 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

/* ---------- responsive ---------- */

@media (max-width: 1024px) {
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-side {
    position: static;
  }

  .app-hero {
    grid-template-columns: auto 1fr;
  }

  .store-actions {
    grid-column: 1 / -1;
    flex-direction: row;
  }

  .store-btn {
    flex: 1;
    min-width: 0;
  }

  .download-panel {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 860px) {
  .header-inner {
    flex-wrap: wrap;
    height: auto;
    gap: 10px 12px;
    padding: 12px 16px;
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .header-search {
    order: 3;
    flex-basis: 100%;
    max-width: none;
    margin: 0;
  }

  .primary-nav {
    display: none;
    order: 4;
    flex-basis: 100%;
    flex-direction: column;
    padding-bottom: 4px;
  }

  .nav-open .primary-nav {
    display: flex;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 28px 22px;
  }

  .hero-mosaic {
    display: none;
  }

  .chart-pair,
  .browse,
  .rank-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .page {
    padding: 20px 16px 48px;
  }

  .section {
    margin-top: 32px;
  }

  .chart-panel,
  .panel {
    padding: 16px;
  }

  .rank-grid {
    padding: 4px 16px;
  }

  .tile-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .app-tile {
    padding: 14px;
  }

  .app-tile .app-icon {
    width: 60px;
    height: 60px;
  }

  .feature-rail {
    grid-auto-columns: 82%;
  }

  .app-hero {
    align-items: start;
    gap: 16px;
    padding: 18px;
  }

  .hero-icon {
    width: 84px;
    height: 84px;
  }

  .app-facts li {
    padding: 0 12px;
  }

  .store-actions,
  .download-actions {
    flex-direction: column;
  }

  .download-panel {
    padding: 20px;
  }

  .shot-rail img {
    height: 300px;
    min-width: 169px;
  }

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

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

  .prose-card {
    padding: 22px;
  }

  .crumbs span {
    max-width: 160px;
  }
}
