:root {
  --paper: #080d17;
  --paper-deep: #0d1422;
  --card: #121b2b;
  --card-high: #182338;
  --ink: #f4f7ff;
  --muted: #8d99af;
  --line: #263147;
  --orange: #6f83ff;
  --orange-dark: #9aa8ff;
  --blue: #18254a;
  --yellow: #c8f169;
  --green: #55d6a5;
  --display: "Outfit", system-ui, sans-serif;
  --body: "Manrope", system-ui, sans-serif;
  --radius: 22px;
  --max: 1120px;
  --shadow: 0 22px 60px rgba(0, 0, 0, .32);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}
body {
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% -15%, rgba(111,131,255,.18), transparent 34%),
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px),
    var(--paper);
  background-size: 36px 36px;
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.download-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }
.wrap { width: min(100%, var(--max)); max-width: 100%; margin: 0 auto; padding-inline: 18px; }

/* Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8,13,23,.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.topbar-inner {
  min-width: 0;
  min-height: 68px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
}
.logo {
  min-width: 0;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--display);
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -.045em;
}
.logo-mark {
  flex: 0 0 auto;
  width: 31px;
  height: 31px;
  object-fit: contain;
}
.nav-links {
  display: none;
  justify-self: center;
  gap: 28px;
  color: var(--muted);
  font-size: .84rem;
  font-weight: 700;
}
.nav-links a { position: relative; transition: color .15s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 2px;
  border-radius: 99px;
  background: var(--orange);
}
.search {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  margin-bottom: 12px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--muted);
}
.search span { font-size: 1.3rem; line-height: 1; }
.search input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: .9rem;
}

.main { padding-top: 24px; padding-bottom: 128px; }

/* Home intro */
.home-intro {
  min-height: 300px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
  padding: 42px 0 36px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.home-intro::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  top: -80px;
  right: -120px;
  background: radial-gradient(circle, rgba(111,131,255,.18), transparent 68%);
  border-radius: 50%;
  z-index: -1;
}
.kicker, .eyebrow {
  display: block;
  margin-bottom: 12px;
  color: var(--orange);
  font-size: .69rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.home-intro h1 {
  width: 100%;
  max-width: 670px;
  overflow-wrap: anywhere;
  font-family: var(--display);
  font-size: clamp(2.25rem, 10vw, 6.2rem);
  font-weight: 800;
  letter-spacing: -.065em;
  line-height: .86;
}
.home-intro h1 em {
  color: var(--yellow);
  font-style: normal;
}
.home-intro p {
  max-width: 580px;
  margin-top: 23px;
  color: var(--muted);
  font-size: .98rem;
}
.hero-showcase {
  display: none;
  width: min(100%, 380px);
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(111,131,255,.12), transparent 55%),
    var(--card);
  box-shadow: var(--shadow);
}
.showcase-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 13px;
  color: var(--muted);
  font-size: .65rem;
  font-weight: 700;
}
.showcase-head span {
  color: var(--yellow);
  letter-spacing: .09em;
  text-transform: uppercase;
}
.showcase-head b { font-weight: 600; }
.showcase-stack { display: grid; gap: 8px; }
.showcase-app {
  display: grid;
  grid-template-columns: 47px 1fr auto;
  gap: 11px;
  align-items: center;
  min-width: 0;
  padding: 9px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 13px;
  background: rgba(255,255,255,.035);
  transform: translateX(calc(var(--i) * 7px));
  transition: border-color .15s ease, background .15s ease;
}
.showcase-app:hover {
  border-color: rgba(200,241,105,.4);
  background: rgba(255,255,255,.06);
}
.showcase-app img {
  width: 47px;
  height: 47px;
  border-radius: 12px;
  object-fit: cover;
}
.showcase-app > span { min-width: 0; }
.showcase-app strong, .showcase-app small { display: block; }
.showcase-app strong {
  overflow: hidden;
  font-family: var(--display);
  font-size: .78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.showcase-app small { margin-top: 2px; color: var(--muted); font-size: .59rem; }
.showcase-app > b { color: var(--yellow); font-size: .9rem; }

/* Shared sections */
.section { padding-top: 52px; }
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 18px;
}
.section-head > div { display: flex; gap: 10px; align-items: baseline; }
.section-index {
  color: var(--orange);
  font-family: var(--display);
  font-size: .68rem;
  font-weight: 800;
}
.section-head h2 {
  font-family: var(--display);
  font-size: clamp(1.55rem, 5vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -.045em;
}
.section-head > span {
  color: var(--muted);
  font-size: .7rem;
  font-weight: 700;
  white-space: nowrap;
}
.section-link {
  color: var(--orange-dark);
  font-size: .72rem;
  font-weight: 800;
  white-space: nowrap;
}
.section-link:hover { color: var(--yellow); }

/* Featured */
.feature-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 84vw);
  gap: 14px;
  overflow-x: auto;
  padding: 3px 3px 14px;
  margin-inline: -3px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.feature-card {
  position: relative;
  min-height: 350px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink);
  box-shadow: var(--shadow);
  scroll-snap-align: start;
  isolation: isolate;
}
.feature-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
  z-index: -2;
}
.feature-card:hover .feature-cover { transform: scale(1.04); }
.feature-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15,15,15,.02) 25%, rgba(13,13,13,.92) 100%),
    linear-gradient(90deg, rgba(18,18,18,.28), transparent);
  z-index: -1;
}
.feature-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: #fff;
}
.feature-content .eyebrow { color: #ffd872; margin-bottom: 8px; }
.feature-content strong {
  max-width: 14ch;
  font-family: var(--display);
  font-size: 1.65rem;
  line-height: 1;
  letter-spacing: -.045em;
}
.feature-copy {
  max-width: 36ch;
  margin-top: 10px;
  color: rgba(255,255,255,.72);
  font-size: .78rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.feature-link {
  margin-top: 18px;
  font-size: .76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.feature-link b { color: var(--yellow); margin-left: 5px; }

/* App grids */
.latest-grid, .post-list {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.latest-grid > *, .post-list > * { min-width: 0; }
.latest-grid .empty, .post-list .empty { grid-column: 1 / -1; }
.app-grid-card {
  min-width: 0;
  overflow: hidden;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(18,27,43,.82);
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.app-grid-card:hover {
  transform: translateY(-2px);
  border-color: #44516b;
  box-shadow: 0 13px 34px rgba(0,0,0,.23);
}
.app-grid-media {
  position: relative;
  width: 100%;
  min-width: 0;
  aspect-ratio: 1;
}
.app-grid-media img {
  width: 100%;
  height: 100%;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 15px;
  background: var(--paper-deep);
  object-fit: cover;
}
.app-grid-badge {
  position: absolute;
  top: 8px;
  right: -4px;
  max-width: calc(100% - 12px);
  overflow: hidden;
  padding: 5px 9px;
  border-radius: 999px;
  background: #397df5;
  color: #fff;
  font-size: .56rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .04em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
.app-grid-copy { min-width: 0; padding: 11px 3px 3px; }
.app-grid-copy h3 {
  overflow: hidden;
  color: var(--ink);
  font-family: var(--display);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: -.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.app-grid-meta {
  min-width: 0;
  display: flex;
  gap: 7px;
  overflow: hidden;
  margin-top: 4px;
  color: var(--muted);
  font-size: .61rem;
  font-weight: 600;
  white-space: nowrap;
}
.app-grid-meta span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-grid-meta span + span::before {
  content: "·";
  margin-right: 7px;
  color: #4a566d;
}
.app-grid-rating {
  display: flex;
  gap: 7px;
  align-items: center;
  margin-top: 10px;
}
.app-grid-rating span {
  display: flex;
  gap: 1px;
  color: #455169;
  font-size: .66rem;
  line-height: 1;
}
.app-grid-rating i { font-style: normal; }
.app-grid-rating i.filled { color: #ffd400; }
.app-grid-rating b { color: #c4ccdc; font-size: .61rem; }

.empty { padding: 30px; text-align: center; color: var(--muted); }

/* Dedicated app and game views */
.catalog-view { min-height: 66vh; }
.catalog-view-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 24px;
  padding: 34px 0 28px;
  border-bottom: 1px solid var(--line);
}
.catalog-view-head h1 {
  font-family: var(--display);
  font-size: clamp(3rem, 11vw, 6rem);
  line-height: .9;
  letter-spacing: -.065em;
}
.catalog-view-head p { margin-top: 13px; color: var(--muted); font-size: .86rem; }
.catalog-view-head > strong {
  min-width: 82px;
  color: var(--yellow);
  font-family: var(--display);
  font-size: 2rem;
  line-height: 1;
  text-align: right;
}
.catalog-view-head > strong span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-family: var(--body);
  font-size: .61rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* Mobile primary tabs */
.mobile-tabbar {
  position: fixed;
  right: max(12px, env(safe-area-inset-right));
  bottom: max(12px, env(safe-area-inset-bottom));
  left: max(12px, env(safe-area-inset-left));
  z-index: 80;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  padding: 7px;
  border: 1px solid rgba(141,153,175,.15);
  border-radius: 22px;
  background: rgba(13,20,34,.94);
  box-shadow: 0 18px 55px rgba(0,0,0,.48);
  backdrop-filter: blur(18px);
}
.mobile-tabbar a {
  min-height: 61px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  border-radius: 17px;
  color: var(--muted);
  font-size: .67rem;
  font-weight: 800;
  transition: color .15s ease, background .15s ease, transform .15s ease;
}
.mobile-tabbar a:active { transform: scale(.97); }
.mobile-tabbar a.active {
  background: linear-gradient(145deg, #7590ff, #536df0);
  color: #fff;
  box-shadow: 0 9px 24px rgba(83,109,240,.28);
}
.mobile-tabbar svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* App detail */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 5px 0 18px;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 700;
}
.back-link span { color: var(--orange); font-size: 1.1rem; }
.app-detail { max-width: 900px; margin: 0 auto; }
.app-cover {
  position: relative;
  height: clamp(230px, 53vw, 430px);
  overflow: hidden;
  border-radius: 26px;
  background: var(--paper-deep);
  box-shadow: var(--shadow);
}
.app-cover > img { width: 100%; height: 100%; object-fit: cover; }
.app-cover-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(11,12,11,.5));
}
.cover-label {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--yellow);
  color: #080d17;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.app-summary {
  position: relative;
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 16px;
  align-items: start;
  margin: -36px 14px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(18,27,43,.96);
  box-shadow: 0 16px 40px rgba(0,0,0,.3);
  backdrop-filter: blur(10px);
}
.detail-icon {
  width: 92px;
  height: 92px;
  border: 4px solid var(--card);
  border-radius: 21px;
  object-fit: cover;
  background: var(--paper-deep);
}
.app-category {
  color: var(--orange);
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.app-heading h1 {
  margin: 4px 0 7px;
  font-family: var(--display);
  font-size: clamp(1.35rem, 5vw, 2.3rem);
  line-height: 1;
  letter-spacing: -.045em;
}
.app-heading p {
  color: var(--muted);
  font-size: .76rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.app-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 24px 0;
  border-block: 1px solid var(--line);
}
.app-facts > div { padding: 16px 7px; text-align: center; }
.app-facts > div + div { border-left: 1px solid var(--line); }
.app-facts span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: .62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.app-facts strong {
  display: block;
  overflow: hidden;
  font-family: var(--display);
  font-size: .79rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.app-facts i { color: var(--yellow); font-style: normal; }
.download-box {
  display: grid;
  gap: 16px;
  margin-bottom: 26px;
  padding: 18px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(111,131,255,.22), transparent 58%),
    var(--blue);
  color: #fff;
}
.download-box > div > span {
  display: block;
  color: #aebaff;
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.download-box > div > strong {
  display: block;
  margin: 3px 0;
  font-family: var(--display);
  font-size: 1.05rem;
}
.download-box small { color: rgba(255,255,255,.58); font-size: .68rem; }
.btn-download {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 0;
  border-radius: 12px;
  background: var(--orange);
  padding: 0 18px;
  color: #fff;
  cursor: pointer;
  font-family: var(--display);
  font-size: .86rem;
  font-weight: 800;
  transition: background .15s ease, transform .15s ease;
}
.btn-download:hover { background: #8192ff; }
.btn-download:active { transform: translateY(1px); }
.btn-download b { font-size: 1.25rem; }

.about-card, .requirements {
  margin-top: 20px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(18,27,43,.76);
}
.content-heading > span {
  color: var(--orange);
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.content-heading h2 {
  margin: 3px 0 16px;
  font-family: var(--display);
  font-size: 1.3rem;
  letter-spacing: -.035em;
}
.detail-body {
  position: relative;
  overflow: hidden;
  color: #adb6c8;
  font-size: .86rem;
  line-height: 1.7;
  transition: max-height .35s ease;
}
.detail-body.collapsed { max-height: 220px; }
.detail-body.collapsed::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 100px;
  background: linear-gradient(transparent, var(--card));
  pointer-events: none;
}
.detail-body:not(.collapsed) { max-height: 5000px; }
.detail-body h2, .detail-body h3, .detail-body h4 {
  margin: 20px 0 8px;
  color: var(--ink);
  font-family: var(--display);
  line-height: 1.15;
}
.detail-body p, .detail-body ul, .detail-body ol { margin-bottom: 12px; }
.detail-body ul, .detail-body ol { padding-left: 20px; }
.read-more {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding: 12px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  color: var(--orange-dark);
  cursor: pointer;
  font-size: .75rem;
  font-weight: 800;
}
.requirements ul { list-style: none; }
.requirements li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .8rem;
}
.requirements li b {
  color: var(--orange);
  font-family: var(--display);
  font-size: .7rem;
}

/* Progress modal */
.dl-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(16,17,16,.82);
  backdrop-filter: blur(14px);
}
.dl-overlay[hidden] { display: none !important; }
.download-stage {
  position: relative;
  width: min(100%, 420px);
  max-height: calc(100svh - 32px);
  overflow-y: auto;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 26px;
  background: #111522;
  box-shadow: 0 28px 80px rgba(0,0,0,.45);
  color: #fff;
}
.dl-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.65);
  cursor: pointer;
  font-size: 1.1rem;
}
.download-app {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  align-items: center;
  padding-right: 35px;
}
.download-app img {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  object-fit: cover;
}
.download-app span {
  color: #8fa1c4;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.download-app h2 {
  overflow: hidden;
  font-family: var(--display);
  font-size: 1rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.progress-visual {
  position: relative;
  width: 150px;
  height: 150px;
  display: grid;
  place-items: center;
  margin: 28px auto;
}
.progress-visual svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.progress-visual circle {
  fill: none;
  stroke-width: 9;
}
.ring-track { stroke: rgba(255,255,255,.08); }
.ring-value {
  stroke: var(--orange);
  stroke-linecap: round;
  transition: stroke-dashoffset .16s linear;
}
.progress-visual strong {
  font-family: var(--display);
  font-size: 2.25rem;
  letter-spacing: -.05em;
}
.process-log {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 14px;
}
.process-step {
  display: grid;
  grid-template-columns: 31px 1fr;
  gap: 10px;
  align-items: center;
  padding: 11px 13px;
  color: #6e7a94;
}
.process-step + .process-step { border-top: 1px solid rgba(255,255,255,.07); }
.process-step i {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: .62rem;
  font-style: normal;
  font-weight: 800;
}
.process-step b, .process-step small { display: block; }
.process-step b { font-size: .75rem; }
.process-step small { color: inherit; font-size: .64rem; opacity: .72; }
.process-step.active { color: #fff; background: rgba(255,255,255,.035); }
.process-step.active i { border-color: var(--orange); background: var(--orange); }
.process-step.done { color: #7dd3a8; }
.process-step.done i { border-color: #2f7d5c; background: #2f7d5c; color: #fff; }
.process-note {
  margin-top: 15px;
  color: #7f8aa1;
  text-align: center;
  font-size: .68rem;
}

/* Focused search */
.search-page .topbar,
.search-page .site-footer,
.search-page .mobile-tabbar { display: none; }
.search-page {
  min-height: 100svh;
  background: #070c16;
}
.search-page .main {
  width: min(100%, 720px);
  min-height: 100svh;
  padding: 0 16px 52px;
}
.search-screen { min-width: 0; }
.search-screen-head {
  min-height: 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.search-screen-head h1 {
  font-family: var(--display);
  font-size: 1.18rem;
  letter-spacing: -.035em;
}
.search-screen-head > a {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 1.75rem;
  font-weight: 300;
  line-height: 1;
}
.search-filters {
  display: flex;
  gap: 8px;
  margin: 5px 0 14px;
}
.search-filters a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border-radius: 11px;
  background: #182235;
  color: #b1bacb;
  font-size: .75rem;
  font-weight: 800;
}
.search-filters a.active {
  background: #3f84f8;
  color: #fff;
}
.search-screen-form {
  min-width: 0;
  height: 62px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 28px;
  gap: 9px;
  align-items: center;
  padding: 0 14px;
  border: 2px solid #438afb;
  border-radius: 17px;
  background: #101827;
  box-shadow: 0 0 0 4px rgba(63,132,248,.21);
}
.search-screen-form svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: #9ba7bc;
  stroke-width: 1.8;
  stroke-linecap: round;
}
.search-screen-form input[type="search"] {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
}
.search-screen-form input::-webkit-search-cancel-button { display: none; }
.search-screen-form > a {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 1.4rem;
}
.search-results {
  margin: 16px -16px 0;
  padding: 16px;
  border-top: 1px solid var(--line);
}
.search-count {
  margin-bottom: 15px;
  color: #c3ccdc;
  font-size: .75rem;
}
.search-count strong { color: #fff; }
.search-result-list { display: grid; gap: 10px; }
.search-result-card {
  position: relative;
  min-width: 0;
  min-height: 98px;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 18px;
  gap: 13px;
  align-items: center;
  overflow: hidden;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #111a2a;
  transition: border-color .15s ease, transform .15s ease;
}
.search-result-card:hover {
  border-color: #44516b;
  transform: translateY(-1px);
}
.search-result-card > img {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: var(--paper-deep);
  object-fit: cover;
}
.search-result-copy { min-width: 0; }
.search-result-copy h2 {
  overflow: hidden;
  padding-right: 36px;
  font-family: var(--display);
  font-size: .82rem;
  letter-spacing: -.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.search-result-copy > span {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  color: #8da4c8;
  font-size: .63rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.search-result-copy > span i {
  margin-inline: 5px;
  color: #536078;
  font-style: normal;
}
.search-result-rating {
  display: flex;
  gap: 7px;
  align-items: center;
  margin-top: 8px;
}
.search-result-rating > span {
  display: flex;
  gap: 1px;
  color: #4a566c;
  font-size: .61rem;
  line-height: 1;
}
.search-result-rating i { font-style: normal; }
.search-result-rating i.filled { color: #ffd400; }
.search-result-rating b { color: #d4dbea; font-size: .61rem; }
.search-result-badge {
  position: absolute;
  top: 11px;
  right: 12px;
  max-width: 62px;
  overflow: hidden;
  padding: 4px 8px;
  border-radius: 999px;
  background: #3f84f8;
  color: #fff;
  font-size: .49rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .04em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
.search-result-arrow {
  color: #8793a8;
  font-size: 1.8rem;
  font-weight: 300;
  line-height: 1;
}

/* Footer */
.site-footer {
  padding: 38px 0;
  border-top: 1px solid var(--line);
  background: var(--paper-deep);
  text-align: center;
}
.footer-logo {
  display: block;
  margin-bottom: 5px;
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 800;
}
.site-footer p { color: var(--muted); font-size: .75rem; }
.site-footer small { display: block; margin-top: 12px; color: #9d9b94; font-size: .62rem; }

@media (min-width: 700px) {
  .main { padding-bottom: 72px; }
  .topbar-inner { grid-template-columns: auto 1fr auto; }
  .nav-links { display: flex; }
  .search { grid-column: auto; width: 230px; margin: 0; }
  .mobile-tabbar { display: none; }
  .hero-showcase { display: block; }
  .latest-grid, .post-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .feature-rail { grid-auto-columns: minmax(350px, 44%); }
  .download-box { grid-template-columns: 1fr 220px; align-items: center; }
  .about-card, .requirements { padding: 30px; }
}

@media (min-width: 980px) {
  .latest-grid, .post-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .feature-rail {
    grid-auto-flow: initial;
    grid-template-columns: 1.2fr .8fr .8fr;
    grid-template-rows: 240px 240px;
    overflow: visible;
  }
  .feature-card { min-height: 0; }
  .feature-card:first-child { grid-row: 1 / 3; }
  .feature-card:nth-child(n+4) { display: none; }
  .feature-content strong { font-size: 1.4rem; }
  .feature-card:first-child .feature-content { padding: 34px; }
  .feature-card:first-child .feature-content strong { font-size: 2.4rem; }
  .feature-card:first-child .feature-copy { font-size: .85rem; }
  .app-summary { margin-inline: 32px; padding: 22px; grid-template-columns: 110px 1fr; }
  .detail-icon { width: 110px; height: 110px; }
}

@media (max-width: 420px) {
  .home-intro h1 {
    max-width: 100%;
    font-size: clamp(2rem, 11.5vw, 2.75rem);
    line-height: .92;
    letter-spacing: -.06em;
  }
  .app-summary { grid-template-columns: 76px 1fr; margin-inline: 8px; }
  .detail-icon { width: 76px; height: 76px; border-radius: 18px; }
  .app-heading p { display: none; }
  .app-facts strong { font-size: .7rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* ========================================================
   AppZut Professional Search Dropdown Styling
   ======================================================== */
.search {
  position: relative;
}

.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 350px;
  max-width: min(92vw, 420px);
  background: #111a2a;
  border: 1px solid #263147;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.06);
  z-index: 10000;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.search-dropdown[hidden] {
  display: none !important;
}

.search-drop-header {
  padding: 8px 14px;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #7f8ea3;
  border-bottom: 1px solid #1a2538;
  background: #0d1422;
}

.search-drop-list {
  max-height: 380px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.search-drop-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(38, 49, 71, 0.5);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}

.search-drop-item:last-child {
  border-bottom: none;
}

.search-drop-item:hover,
.search-drop-item.selected {
  background: #182338;
}

.search-drop-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  background: #0c121d;
  flex-shrink: 0;
}

.search-drop-info {
  flex: 1;
  min-width: 0;
}

.search-drop-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.search-drop-title {
  font-family: var(--display, 'Outfit', sans-serif);
  font-size: 0.84rem;
  font-weight: 600;
  color: #f4f7ff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-drop-title mark {
  background: transparent;
  color: #c8f169;
  font-weight: 800;
}

.search-drop-badge {
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
  background: #3f84f8;
  color: #ffffff;
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
  letter-spacing: 0.03em;
}

.search-drop-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  color: #8d99af;
  margin-top: 2px;
}

.search-drop-stars {
  color: #ffd400;
  font-weight: 700;
}

.search-drop-arrow {
  color: #55657e;
  font-size: 1.2rem;
  font-weight: 300;
}

.search-drop-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  background: #0d1422;
  border-top: 1px solid #1e2a3e;
  color: #6f83ff;
  font-size: 0.74rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s ease;
}

.search-drop-footer:hover,
.search-drop-footer.selected {
  background: #152033;
  color: #8da4ff;
}

.search-drop-empty {
  padding: 20px 14px;
  text-align: center;
  color: #8d99af;
  font-size: 0.78rem;
}

@media (max-width: 768px) {
  .search-dropdown {
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
  }
}
