/* Cosmo App Store — light theme, plain CSS */
:root {
  --bg: #ffffff;
  --card: #f9f9f9;
  --muted: #f4f4f4;
  --border: #e4e4e7;
  --fg: #1a1a1a;
  --body: #3f3f46;
  --sub: #6b7280;
  --primary: #1f9d55;
  --primary-ink: #ffffff;
  --rating: #f0a020;
  --danger: #dc2626;
  --rank1: #e0362c;
  --rank2: #ef7d22;
  --rank3: #f5c33b;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: Inter, system-ui, "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Top loading bar */
#progress-bar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: #2f6fed; z-index: 60; transition: width .25s ease, opacity .3s ease;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--border); backdrop-filter: blur(8px); box-shadow: var(--shadow);
}
.header-inner {
  max-width: 1040px; margin: 0 auto; height: 56px; display: flex; align-items: center;
  gap: 10px; padding: 0 12px;
}
.brand { margin-right: auto; display: flex; align-items: center; }
.brand img { height: 34px; width: auto; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 9px;
  border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--body);
}
.nav a:hover { background: var(--muted); }
.nav a.active { background: var(--muted); color: var(--fg); }
.nav a img, .nav a svg { width: 16px; height: 16px; }
.nav-label { display: none; }
@media (min-width: 640px) { .nav-label { display: inline; } .header-inner { padding: 0 20px; } }

/* Layout */
.frame { max-width: 1040px; margin: 0 auto; padding: 20px 12px 48px; min-height: calc(100vh - 56px); }
.frame.narrow { max-width: 900px; }
@media (min-width: 640px) { .frame { padding: 20px 20px 48px; } }
.page-heading h1 { margin: 0; font-size: 26px; font-weight: 800; }
.page-heading p { margin: 4px 0 0; color: var(--sub); font-size: 14px; max-width: 640px; }
.page-heading { margin-bottom: 20px; }

.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.empty { padding: 56px 16px; text-align: center; color: var(--sub); font-size: 14px; }
.section { padding: 26px 0; }
.section + .section { border-top: 1px solid var(--border); }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.section-title h2 { margin: 0; font-size: 18px; font-weight: 800; }
.section-title a { color: var(--sub); font-size: 13px; font-weight: 600; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 8px; border: 1px solid transparent; background: var(--primary);
  color: var(--primary-ink); font-weight: 600; font-size: 14px; padding: 9px 16px; cursor: pointer;
}
.btn:hover { filter: brightness(.95); }
.btn.outline { background: #fff; color: var(--fg); border-color: var(--border); }
.btn.lg { padding: 12px 20px; font-size: 15px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

/* Hero carousel */
.hero { position: relative; overflow: hidden; border-radius: 16px; border: 1px solid var(--border); background: var(--card); box-shadow: var(--shadow); }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(18px); transform: scale(1.15); }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, var(--card), rgba(249,249,249,.92), rgba(249,249,249,.6)); }
.hero-body { position: relative; display: flex; gap: 16px; align-items: center; min-height: 208px; padding: 24px 16px; }
@media (min-width: 640px) { .hero-body { padding: 32px; gap: 24px; } }
.hero-kicker { margin: 0; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--primary); }
.hero h1 { margin: 4px 0 0; font-size: 22px; font-weight: 800; }
@media (min-width: 640px) { .hero h1 { font-size: 30px; } }
.hero .meta { margin: 4px 0 0; color: var(--sub); font-size: 13px; }
.hero .desc { margin: 8px 0 0; color: var(--sub); font-size: 13px; max-width: 560px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero-actions { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-dots { position: relative; display: flex; justify-content: center; gap: 8px; padding-bottom: 16px; }
.hero-dots button { height: 6px; width: 6px; border: 0; border-radius: 999px; background: var(--border); cursor: pointer; padding: 0; }
.hero-dots button.active { width: 24px; background: var(--primary); }
.hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); display: none; border: 1px solid var(--border); background: rgba(255,255,255,.9); border-radius: 999px; padding: 6px 10px; cursor: pointer; }
.hero-arrow.prev { left: 6px; } .hero-arrow.next { right: 6px; }
@media (min-width: 640px) { .hero-arrow { display: block; } }

/* Icons */
.app-icon { border-radius: 16px; border: 1px solid var(--border); background: #fff; object-fit: cover; box-shadow: var(--shadow); flex: none; }
.icon-fallback { display: grid; place-items: center; border-radius: 16px; border: 1px solid var(--border); background: var(--muted); font-weight: 800; flex: none; }
.size-popular { width: 88px; height: 88px; }
.size-grid { width: 56px; height: 56px; }
.size-update { width: 48px; height: 48px; }
.size-detail { width: 96px; height: 96px; font-size: 26px; }
.size-badge { width: 80px; height: 80px; margin: 0 auto; }

/* Popular strip */
.strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding: 12px 0 8px; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.strip .item { width: 100%; min-width: 0; text-align: center; }
.strip .app-icon, .strip .icon-fallback { width: min(88px, 100%); height: auto; aspect-ratio: 1; margin: 0 auto; }
.rank-wrap { position: relative; display: block; }
.rank {
  position: absolute; left: 0; top: 0; min-width: 28px; height: 28px; display: grid; place-items: center;
  padding: 0 5px; font-size: 12px; font-weight: 800; color: #fff;
  border-top-left-radius: 16px; border-bottom-right-radius: 12px; background: var(--sub);
}
.rank.r1 { background: var(--rank1); } .rank.r2 { background: var(--rank2); } .rank.r3 { background: var(--rank3); color: #3a2a06; }
.strip .name { display: block; margin-top: 8px; font-size: 11px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.strip .stars { display: block; font-size: 12px; font-weight: 700; color: var(--rating); }

/* Rows */
.rows { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
@media (min-width: 640px) { .rows { gap: 16px; } }
.row-card { display: flex; flex-direction: column; text-align: center; align-items: center; gap: 8px; padding: 10px 4px; border: 1px solid var(--border); background: var(--card); border-radius: 12px; box-shadow: var(--shadow); min-width: 0; }
.row-card:hover { background: var(--muted); }
.row-card .text { min-width: 0; width: 100%; flex: 1; }
.row-card .title { display: block; font-size: 11px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-card .sub { display: block; font-size: 12px; color: var(--sub); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-card .date { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; color: var(--sub); }

/* Hot grid */
.hot-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 8px; margin-top: 16px; }
@media (min-width: 640px) { .hot-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 16px; } }
.hot-grid .item { text-align: center; min-width: 0; }
.hot-grid .item .app-icon, .hot-grid .item .icon-fallback { margin: 0 auto; }
.hot-grid .name { display: block; margin-top: 8px; font-size: 11px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hot-grid .count { display: block; font-size: 10px; color: var(--sub); }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { border: 1px solid var(--border); background: var(--card); border-radius: 999px; padding: 8px 16px; font-size: 14px; font-weight: 600; box-shadow: var(--shadow); }
.chip:hover { background: var(--muted); }

/* Category list */
.cat-list { display: grid; gap: 12px; }
@media (min-width: 640px) { .cat-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cat-item { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--border); background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.cat-item:hover { background: var(--muted); }
.cat-item .badge { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--muted); color: var(--primary); font-weight: 800; }
.cat-item strong { display: block; }
.cat-item span.sub { font-size: 12px; color: var(--sub); }

/* Search */
.search-bar { display: grid; gap: 8px; padding: 12px; }
@media (min-width: 640px) { .search-bar { grid-template-columns: minmax(0, 1fr) 140px 190px; } }
.search-bar input, .search-bar select { height: 40px; border: 1px solid var(--border); border-radius: 8px; background: #fff; padding: 0 12px; font-size: 14px; }
.search-bar input:focus, .search-bar select:focus, textarea:focus { outline: 2px solid #9ec5fe; outline-offset: 1px; }
.result-count { margin: 20px 0 8px; font-size: 12px; font-weight: 600; color: var(--sub); }

/* Detail page */
.detail-head { padding: 16px; }
@media (min-width: 640px) { .detail-head { padding: 24px; } }
.detail-top { display: flex; gap: 16px; align-items: flex-start; }
.detail-top h1 { margin: 0; font-size: 22px; overflow-wrap: anywhere; font-weight: 800; }
.detail-top .dev { margin: 4px 0 0; font-size: 14px; color: var(--sub); }
.detail-meta { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12px; color: var(--sub); }
.detail-meta .star { color: var(--rating); font-weight: 700; }
.download-actions { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.native-banner { width: 100%; min-height: 1px; margin-top: 16px; overflow: hidden; }
.native-banner:empty { display: none; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; margin-bottom: 12px; }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.stat { border-left: 2px solid var(--border); padding-left: 8px; min-width: 0; }
.stat b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stat span { font-size: 10px; text-transform: uppercase; color: var(--sub); }
.about p { white-space: pre-line; font-size: 14px; line-height: 1.8; color: var(--body); margin: 0; }
.shots { display: flex; gap: 12px; overflow-x: auto; padding: 8px 0; scrollbar-width: none; }
.shots::-webkit-scrollbar { display: none; }
.shots img { height: 300px; width: auto; flex: none; border: 1px solid var(--border); border-radius: 12px; background: #fff; object-fit: contain; box-shadow: var(--shadow); }
.review-grid { display: grid; gap: 20px; margin-top: 24px; }
@media (min-width: 1024px) { .review-grid { grid-template-columns: minmax(0, 360px) 1fr; } }
.stars-input { display: flex; gap: 4px; }
.stars-input button { background: none; border: 0; cursor: pointer; font-size: 26px; line-height: 1; color: var(--border); padding: 0 2px; }
.stars-input button.on { color: var(--rating); }
textarea { width: 100%; resize: vertical; border: 1px solid var(--border); border-radius: 8px; padding: 12px; font-size: 14px; background: #fff; }
.review { padding: 16px; margin-bottom: 8px; }
.review header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.review .rate { font-size: 12px; font-weight: 700; color: var(--rating); }
.review p { margin: 8px 0 0; font-size: 14px; color: var(--body); }
.review time { display: block; margin-top: 8px; font-size: 11px; color: var(--sub); }
.note { font-size: 12px; margin-top: 8px; }
.note.ok { color: var(--primary); } .note.bad { color: var(--danger); }

/* Download wait page */
.wait { max-width: 720px; margin: 0 auto; padding: 32px 16px 64px; text-align: center; }
.wait h1 { margin: 16px 0 0; font-size: 24px; font-weight: 700; }
.wait .meta { margin: 4px 0 0; font-size: 14px; color: var(--sub); }
.ring { width: 96px; height: 96px; margin: 32px auto 0; display: grid; place-items: center; border: 4px solid var(--border); border-radius: 999px; font-size: 30px; font-weight: 800; }
.track { height: 8px; border-radius: 999px; background: var(--muted); overflow: hidden; margin: 20px auto 0; max-width: 420px; }
.track > div { height: 100%; width: 0; background: var(--primary); transition: width 1s linear; }
.wait .status { margin: 16px 0 0; font-weight: 600; }
.wait .hint { margin: 4px 0 0; font-size: 12px; color: var(--sub); }
.verified { margin-top: 32px; font-size: 12px; color: var(--sub); }

/* Age gate */
.gate { max-width: 1040px; margin: 0 auto; display: grid; place-items: center; min-height: calc(100vh - 56px); padding: 40px 16px; }
.gate .box { width: 100%; max-width: 384px; text-align: center; padding: 24px; }
.gate .icon-wrap { position: relative; width: fit-content; margin: 0 auto; }
.gate .icon-wrap img { width: 80px; height: 80px; border-radius: 16px; border: 1px solid var(--border); object-fit: cover; }
.gate .badge18 { position: absolute; right: -8px; bottom: -8px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 999px; border: 4px solid var(--card); background: var(--danger); color: #fff; font-size: 13px; font-weight: 800; }
.gate h1 { margin: 24px 0 0; font-size: 24px; font-weight: 800; }
.gate p { color: var(--sub); font-size: 14px; }

/* Skeleton */
.skeleton { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .5; } }
.sk-line { height: 14px; border-radius: 6px; background: var(--muted); }
.sk-box { border-radius: 16px; background: var(--muted); }

footer.site-footer { border-top: 1px solid var(--border); padding: 24px 12px; text-align: center; font-size: 12px; color: var(--sub); }

/* v3 home: rectangular games-only feature carousel */
.game-carousel { min-height: 250px; border-radius: 8px; }
.game-carousel .hero-bg img { filter: none; transform: none; }
.game-carousel .hero-bg::after {
  background: linear-gradient(90deg, rgba(16, 24, 20, .96) 0%, rgba(16, 24, 20, .84) 52%, rgba(16, 24, 20, .25) 100%);
}
.game-carousel .hero-body { min-height: 250px; max-width: 720px; color: var(--primary-ink); }
.game-carousel .hero-copy { min-width: 0; flex: 1; }
.game-carousel .hero-kicker { color: #71dfa2; }
.game-carousel .meta, .game-carousel .desc { color: rgba(255, 255, 255, .78); }
.game-carousel .btn.outline { background: rgba(255, 255, 255, .1); color: var(--primary-ink); border-color: rgba(255, 255, 255, .55); }
.game-carousel .hero-dots { position: absolute; z-index: 2; bottom: 0; left: 0; right: 0; }
.game-carousel .hero-dots button { background: rgba(255, 255, 255, .45); }
.game-carousel .hero-dots button.active { background: var(--primary-ink); }
.game-carousel .hero-arrow { color: var(--fg); }
@media (max-width: 639px) {
  .game-carousel { min-height: 230px; }
  .game-carousel .hero-body { min-height: 230px; align-items: flex-start; padding: 22px 16px 42px; }
  .game-carousel .size-detail { width: 72px; height: 72px; font-size: 22px; border-radius: 12px; }
  .game-carousel .desc { -webkit-line-clamp: 1; }
}

/* ---------- 18+ age verification ---------- */
body.age-locked { overflow: hidden; }
.age-overlay {
  position: fixed; inset: 0; z-index: 90;
  display: flex; align-items: center; justify-content: center;
  padding: 20px; background: rgba(6, 10, 20, 0.78);
  backdrop-filter: blur(6px);
}
.age-box {
  width: 100%; max-width: 380px; text-align: center;
  background: var(--card, #fff); color: inherit;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 18px; padding: 24px 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.age-box h2 { margin: 12px 0 6px; font-size: 20px; }
.age-icon {
  display: block; width: 96px; height: 96px; margin: 0 auto 12px;
  object-fit: cover; border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.age-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; margin: 0 auto; border-radius: 50%;
  font-weight: 800; font-size: 16px; color: #fff;
  background: linear-gradient(135deg, #ff4d6d, #c81e4a);
}
.age-note { font-size: 13px; opacity: 0.75; line-height: 1.5; margin: 0 0 16px; }
.age-field { display: block; text-align: left; font-size: 12px; font-weight: 600; opacity: 0.8; }
.age-field input {
  display: block; width: 100%; margin-top: 6px; padding: 12px;
  font: inherit; color: inherit; border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.18); background: rgba(0, 0, 0, 0.03);
}
.age-error { margin: 10px 0 0; font-size: 12px; color: #ff6b81; }
.age-actions { display: grid; gap: 8px; margin-top: 18px; }
.age-actions .btn { width: 100%; justify-content: center; }
.age-actions .btn.ghost {
  background: transparent; color: inherit;
  border: 1px solid rgba(0, 0, 0, 0.18);
}
.chip-adult { position: relative; }
.chip-badge {
  margin-left: 6px; padding: 1px 6px; border-radius: 999px;
  font-size: 10px; font-weight: 800; color: #fff; background: #c81e4a;
}
.cat-adult .badge {
  color: #fff; font-size: 12px; font-weight: 800;
  background: linear-gradient(135deg, #ff4d6d, #c81e4a);
}

/* Cosmo v7 — clean editorial store */
:root {
  --bg: #ffffff; --card: #ffffff; --muted: #f5f6f7; --border: #e5e7e9;
  --fg: #171b1e; --body: #41494d; --sub: #697378;
  --primary: #d9364c; --primary-ink: #ffffff; --radius: 6px;
  --shadow: none;
}
body { font-family: "Inter", system-ui, sans-serif; line-height: 1.5; }
.site-header { background: #fff; box-shadow: none; border-bottom: 1px solid var(--border); }
.header-inner { max-width: 1200px; height: 76px; padding: 0 28px; gap: 28px; }
.brand { margin: 0; flex: none; }
.brand img { height: 55px; width: auto; object-fit: contain; }
.nav { margin-left: auto; gap: 4px; }
.nav a { color: var(--body); padding: 10px 12px; font-size: 14px; font-weight: 650; border-radius: 4px; }
.nav a:hover, .nav a.active { background: var(--muted); color: var(--fg); }
.menu-extra, .menu-toggle { display: none; }
.header-search { width: 210px; flex: none; display: flex; align-items: center; gap: 10px; background: var(--muted); color: var(--sub); padding: 10px 12px; border-radius: 5px; font-size: 12px; }
.header-search svg { width: 18px; height: 18px; flex: none; }
.frame { max-width: 1200px; padding: 28px 28px 80px; }
.store-intro { padding: 16px 0 26px; }
.eyebrow { font-size: 11px; font-weight: 800; color: var(--primary); margin: 0 0 8px; letter-spacing: .11em; }
.store-intro h1 { font-size: clamp(30px, 4vw, 50px); line-height: 1.12; font-weight: 800; margin: 0; max-width: 700px; }
.intro-sub { margin: 10px 0 0; color: var(--sub); font-size: 15px; }
.quick-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 19px; }
.quick-link { border: 1px solid var(--border); padding: 8px 13px; border-radius: 4px; font-size: 12px; font-weight: 700; }
.quick-link:hover { border-color: var(--primary); color: var(--primary); }
.feature-story { display: block; position: relative; overflow: hidden; height: min(38vw, 385px); min-height: 270px; background: #22282d; border-radius: 4px; color: #fff; }
.feature-image { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.feature-shade { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; padding: 34px; background: linear-gradient(0deg, rgba(8,11,12,.9), rgba(8,11,12,.12) 78%); }
.feature-kicker { font-size: 11px; font-weight: 800; letter-spacing: .09em; color: #fff; }
.feature-shade h2 { font-size: clamp(25px, 3vw, 39px); line-height: 1.15; margin: 7px 0 3px; max-width: 640px; }
.feature-shade p { margin: 0; color: #e4e7e7; }
.feature-cta { margin-top: 16px; background: #fff; color: var(--fg); padding: 9px 17px; border-radius: 4px; font-weight: 750; font-size: 13px; }
.section { padding: 37px 0 42px; }
.section + .section { border-top: 1px solid var(--border); }
.section-title { margin-bottom: 20px; }
.section-title h2 { font-size: 23px; font-weight: 800; line-height: 1.2; }
.section-title a { color: var(--primary); border: 1px solid #f0bac2; border-radius: 4px; padding: 8px 13px; font-size: 12px; white-space: nowrap; }
.section-title a:hover { background: #fff3f4; }
.cover-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 32px 20px; }
.cover-item { min-width: 0; display: block; }
.cover-art { aspect-ratio: 1.55; background: var(--muted); border-radius: 3px; overflow: hidden; display: grid; place-items: center; }
.cover-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.cover-item:hover .cover-art img { transform: scale(1.025); }
.cover-info { padding: 10px 0 0; }
.cover-info strong { display: block; font-size: 16px; font-weight: 750; line-height: 1.35; overflow-wrap: anywhere; }
.cover-type { display: inline-block; margin: 6px 0 0; color: var(--primary); font-size: 10px; font-weight: 800; letter-spacing: .06em; }
.cover-info p { margin: 5px 0 0; font-size: 13px; line-height: 1.4; color: var(--sub); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.chip { border-radius: 4px; box-shadow: none; font-size: 13px; }
.card, .row-card, .cat-item { box-shadow: none; }
.row-card { background: #fff; border-radius: 5px; }
.row-card:hover, .cat-item:hover { border-color: #cbd0d3; background: var(--muted); }
.page-heading { margin: 18px 0 25px; }
.page-heading h1 { font-size: 32px; }
.search-bar { border-radius: 5px; }
.btn { border-radius: 5px; }
.site-footer { color: var(--sub); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
@media (max-width: 760px) {
  .header-inner { height: 74px; padding: 0 18px; gap: 16px; }
  .menu-toggle { border: 0; padding: 7px 2px; background: transparent; display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 28px; height: 36px; cursor: pointer; flex: none; }
  .menu-toggle span { display: block; width: 25px; height: 2px; background: var(--fg); }
  .brand { margin-right: auto; }
  .brand img { height: 52px; }
  .header-search { width: 38px; height: 38px; padding: 9px; background: transparent; justify-content: center; }
  .header-search span { display: none; }
  .nav { display: none; position: absolute; left: 0; top: 74px; width: min(85vw, 340px); max-height: calc(100dvh - 74px); overflow: auto; margin: 0; background: #fff; border: 1px solid var(--border); box-shadow: 12px 12px 35px rgba(0,0,0,.13); padding: 16px; flex-direction: column; align-items: stretch; z-index: 35; }
  .nav.open { display: flex; }
  .nav a { font-size: 16px; padding: 12px 10px; }
  .menu-extra { display: flex; flex-direction: column; border-top: 1px solid var(--border); margin-top: 14px; padding-top: 16px; }
  .menu-extra strong { padding: 0 10px 8px; font-size: 11px; color: var(--sub); text-transform: uppercase; }
  .frame { padding: 20px 18px 65px; }
  .store-intro { padding: 8px 0 22px; }
  .store-intro h1 { font-size: 31px; }
  .intro-sub { font-size: 13px; }
  .quick-links { flex-wrap: nowrap; overflow-x: auto; margin-top: 16px; scrollbar-width: none; }
  .quick-link { flex: none; }
  .feature-story { min-height: 260px; height: 62vw; max-height: 360px; }
  .feature-shade { padding: 20px; }
  .feature-shade h2 { font-size: 25px; }
  .section { padding: 30px 0 34px; }
  .section-title h2 { font-size: 21px; }
  .cover-grid { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 26px 13px; }
  .cover-art { aspect-ratio: 1.28; }
  .cover-info strong { font-size: 14px; }
  .cover-info p { font-size: 12px; }
  .rows { grid-template-columns: repeat(4, minmax(0,1fr)); }
}
@media (max-width: 380px) { .brand img { height: 44px; } .header-inner { gap: 11px; padding: 0 12px; } .cover-info strong { font-size: 13px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }


/* Cosmo v8 — separated icon-led catalog lines */
.icon-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.icon-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 10px 6px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--card);
}
.icon-card:hover { background: var(--muted); border-color: #cbd0d3; }
.icon-card .size-popular { width: 58px; height: 58px; border-radius: 13px; }
.icon-card-label { min-width: 0; display: block; }
.icon-card-label strong, .icon-card-label small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icon-card-label { width: 100%; }
.icon-card-label strong { font-size: 11px; }
.icon-card-label small { margin-top: 3px; color: var(--sub); font-size: 10px; }
.adult-section { border-top-color: #efcbd0; }
.adult-section .section-title h2 { color: var(--primary); }
.age-overlay { background: rgba(6, 10, 20, .86); backdrop-filter: none; }
.age-note { max-width: 310px; margin-left: auto; margin-right: auto; }
.download-ready { width: auto; min-width: 118px; padding: 8px 14px; font-size: 13px; }

@media (max-width: 460px) {
  .icon-card-grid { gap: 10px; }
  .icon-card { flex-direction: column; align-items: center; padding: 10px 4px; text-align: center; }
  .icon-card .size-popular { width: min(58px, 100%); height: auto; aspect-ratio: 1; }
  .icon-card-label { width: 100%; }
}


/* Cosmo v9 — click-only 18+ gate and compact clear actions */
.btn {
  min-height: 32px;
  padding: 6px 11px;
  border-color: var(--border);
  background: transparent;
  color: var(--fg);
  font-size: 12px;
  box-shadow: none;
}
.btn:hover { background: var(--muted); filter: none; }
.btn.lg { padding: 7px 12px; font-size: 12px; }
.age-actions { display: flex; justify-content: center; flex-wrap: wrap; }
.age-actions .btn { width: auto; }
.age-actions .btn.ghost { background: transparent; border-color: var(--border); }
.adult-section .section-title h2 { color: var(--fg); }
.adult-icon-wrap { position: relative; display: inline-flex; flex: none; }
.adult-icon-wrap.is-locked { overflow: hidden; border-radius: 13px; background: var(--muted); }
.adult-icon-wrap.is-locked .app-icon,
.adult-icon-wrap.is-locked .icon-fallback { filter: blur(12px); transform: scale(1.12); }
.adult-lock {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 25px; line-height: 1; background: rgba(255,255,255,.2);
}
.wait { max-width: 760px; padding-top: 36px; text-align: left; }
.download-header .header-inner { justify-content: flex-start; }
.download-loading { text-align: center; color: var(--sub); font-size: 12px; }
.download-summary { display: flex; align-items: flex-start; gap: 16px; }
.download-summary .size-badge { width: 72px; height: 72px; margin: 0; border-radius: 14px; }
.download-copy { min-width: 0; }
.download-copy h1 { margin: 0; font-size: 23px; line-height: 1.25; }
.download-size { margin: 5px 0 0; color: var(--sub); font-size: 12px; font-weight: 700; }
.download-description { margin: 9px 0 0; color: var(--body); font-size: 13px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.download-shots { display: flex; gap: 10px; overflow-x: auto; margin-top: 24px; padding-bottom: 5px; scrollbar-width: thin; }
.download-shots img { height: 230px; width: auto; flex: none; object-fit: contain; border: 1px solid var(--border); border-radius: 5px; background: var(--muted); }
.download-timer { margin: 22px 0 0; color: var(--sub); font-size: 11px; }
.download-timer strong { color: var(--fg); font-size: 11px; }
.download-actions-compact { margin-top: 10px; }
.download-ready { min-width: 0; width: auto; padding: 6px 11px; font-size: 12px; }
@media (max-width: 520px) {
  .wait { padding: 24px 18px 48px; }
  .download-summary { gap: 12px; }
  .download-summary .size-badge { width: 60px; height: 60px; }
  .download-copy h1 { font-size: 19px; }
  .download-shots img { height: 190px; }
}

/* Cosmo V20 — collapsible copy and accessible full-image viewer */
:root { --viewer-backdrop: oklch(0.12 0 0 / 94%); --viewer-ink: oklch(1 0 0); }
.description-collapse { margin-top: 12px; font-size: 13px; color: var(--body); }
.description-collapse summary { cursor: pointer; color: var(--fg); font-weight: 600; padding: 8px 0; }
.description-collapse p { margin: 8px 0 0; white-space: pre-line; overflow-wrap: anywhere; }
.screenshot-button { display: block; flex: none; max-width: 100%; border: 0; padding: 0; background: transparent; cursor: zoom-in; border-radius: 5px; }
.screenshot-viewer { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 56px 16px; border: 0; background: var(--viewer-backdrop); color: var(--viewer-ink); }
.screenshot-viewer::backdrop { background: var(--viewer-backdrop); }
.screenshot-viewer[open] { display: flex; align-items: center; justify-content: center; }
.screenshot-viewer img { max-width: 100%; max-height: 100%; width: 100%; height: 100%; object-fit: contain; }
.viewer-close, .viewer-prev, .viewer-next { position: absolute; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--viewer-ink); border-radius: 5px; background: var(--viewer-backdrop); color: var(--viewer-ink); cursor: pointer; font-size: 26px; }
.viewer-close { top: 12px; right: 12px; }
.viewer-prev { left: 12px; top: calc(50% - 22px); }
.viewer-next { right: 12px; top: calc(50% - 22px); }
.viewer-counter { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; font-size: 12px; }
body.screenshot-locked { overflow: hidden; }

.screenshot-viewer [hidden] { display: none; }

/* Edge-to-edge square catalog cards across home, search and categories. */
.icon-card, .row-card, .strip .item, .hot-grid .item, .cover-item {
  padding: 0;
  border-radius: 0;
}
.icon-card .adult-icon-wrap, .strip .rank-wrap { display: block; width: 100%; border-radius: 0; }
.icon-card .size-popular, .strip .size-popular, .row-card .size-update,
.hot-grid .size-grid {
  width: 100%; height: auto; aspect-ratio: 1; border-radius: 0;
}
.cover-art { border-radius: 0; }

/* Compact detail cover and protected download controls. */
:root { --detail-shade: oklch(0.12 0 0 / 48%); --detail-text-shadow: 0 1px 3px oklch(0 0 0 / 75%); }
.detail-head { position: relative; overflow: hidden; padding: 0; border-radius: 0; }
.detail-cover { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; filter: blur(12px); transform: scale(1.1); }
.detail-foreground { position: relative; padding: 0; }
.has-cover .detail-foreground { min-height: 270px; display: flex; flex-direction: column; justify-content: center; background: var(--detail-shade); color: var(--viewer-ink); text-shadow: var(--detail-text-shadow); }
.has-cover .dev, .has-cover .detail-meta { color: inherit; }
.has-cover .protected-download { color: var(--viewer-ink); border-color: var(--viewer-ink); background: var(--detail-shade); text-shadow: var(--detail-text-shadow); }
.detail-top { align-items: center; gap: 12px; }
.detail-top .size-detail { width: 56px; height: 56px; border-radius: 0; }
.detail-top h1 { font-size: 18px; line-height: 1.3; }
.detail-top .dev { font-size: 11px; }
.detail-meta { font-size: 10px; margin-top: 6px; }
.detail-head .download-actions { margin-top: 12px; }
.detail-head > .native-banner { position: relative; margin: 0; }
.download-summary .size-badge { width: 48px; height: 48px; border-radius: 0; }
.download-copy h1 { font-size: 17px; }
.description-label { display: block; }
.description-preview { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 5px; font-weight: 400; font-size: 12px; color: var(--body); }
.description-collapse[open] .description-preview { display: none; }
.protected-download { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; touch-action: manipulation; }
.about { padding: 0; border: 0; border-radius: 0; }
.shots, .download-shots { padding: 0; }
.shots img, .download-shots img, .screenshot-button { padding: 0; border: 0; border-radius: 0; }
@media (max-width: 520px) { .has-cover .detail-foreground { min-height: 230px; } }

/* Cosmo Game Store promo under app download buttons */
.cosmo-promo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0;
}
.cosmo-promo-icon {
  width: 44px;
  height: 44px;
  border-radius: 0;
  object-fit: cover;
  flex: none;
}
.cosmo-promo-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.cosmo-promo-info strong {
  font-size: 13px;
  line-height: 1.2;
}
.cosmo-promo-info span {
  font-size: 11px;
  opacity: 0.7;
}
.cosmo-promo-btn {
  flex: none;
  padding: 8px 14px;
  font-size: 12px;
}
.cosmo-promo { position: relative; z-index: 1; }

/* Compact navigation and screenshot-led home cards. */
.header-inner { height: 54px; gap: 16px; }
.brand img { height: 32px; }
.nav a { font-size: 12px; padding: 7px 9px; }
.header-search { width: 180px; font-size: 11px; padding: 7px 10px; }
#home .store-intro { padding: 0 0 20px; }
#home .store-intro h1 { font-size: 26px; letter-spacing: 0; }
#home .quick-links { margin-top: 12px; }
#home .quick-link { border: 0; border-bottom: 1px solid var(--border); border-radius: 0; padding: 6px 0; margin-right: 14px; font-size: 11px; }
#home .feature-story { height: 250px; min-height: 0; border-radius: 0; }
#home .feature-shade h2 { font-size: 26px; letter-spacing: 0; }
#home .feature-kicker { letter-spacing: 0; }
#home .section { padding: 24px 0; }
#home .section-title { margin-bottom: 14px; }
#home .section-title h2 { font-size: 18px; }
#home .icon-card-grid { gap: 20px 14px; }
#home .icon-card { align-items: stretch; text-align: left; gap: 7px; border: 0; border-bottom: 1px solid var(--border); background: var(--card); padding: 0; border-radius: 0; }
#home .adult-icon-wrap { position: relative; aspect-ratio: 1.3; overflow: hidden; background: var(--muted); }
#home .home-card-cover { width: 100%; height: 100%; object-fit: cover; }
#home .icon-card .size-popular { position: absolute; left: 0; bottom: 0; width: 36px; height: 36px; aspect-ratio: 1; border: 2px solid var(--card); border-radius: 0; }
#home .icon-card-label { min-height: 37px; }
#home .icon-card-label strong { font-size: 11px; font-weight: 600; }
#home .icon-card-label small { font-size: 9px; margin-top: 2px; }
#home .is-locked .home-card-cover { filter: blur(12px); transform: scale(1.12); }
@media (max-width: 760px) {
  .header-inner { height: 50px; gap: 10px; padding: 0 12px; }
  .brand img { height: 28px; }
  .menu-toggle { width: 30px; height: 36px; gap: 4px; padding: 7px 5px; }
  .menu-toggle span { width: 18px; }
  .nav { top: 50px; width: min(78vw, 260px); max-height: calc(100dvh - 50px); padding: 10px; background: var(--card); }
  .nav a { font-size: 12px; padding: 9px 8px; }
  .menu-extra { margin-top: 8px; padding-top: 10px; }
  .header-search { width: 34px; height: 34px; padding: 8px; }
  #home.frame { padding: 18px 12px 48px; }
  #home .store-intro h1 { font-size: 22px; }
  #home .feature-story { height: 180px; }
  #home .feature-shade { padding: 16px; }
  #home .feature-shade h2 { font-size: 22px; }
  #home .feature-cta { margin-top: 8px; font-size: 11px; padding: 6px 10px; }
  #home .icon-card-grid { gap: 14px 8px; }
  #home .icon-card .size-popular { width: 26px; height: 26px; }
}

/* Single-column catalog: one app card per row on every screen. */
.icon-card-grid, .rows, .strip, .hot-grid { grid-template-columns: minmax(0, 1fr); }

/* Home: square screenshot thumb on the left, full name and version on the right. */
#home .icon-card-grid { gap: 12px; }
#home .icon-card { flex-direction: row; align-items: stretch; gap: 12px; }
#home .icon-card .adult-icon-wrap { flex: none; width: 132px; aspect-ratio: 1; }
#home .icon-card .size-popular { width: 32px; height: 32px; }
#home .icon-card-label { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; min-height: 0; }
#home .icon-card-label strong { font-size: 15px; font-weight: 650; white-space: normal; overflow: visible; }
#home .icon-card-label small { font-size: 12px; margin-top: 5px; }

/* Shared list cards (search, categories): icon left, details right. */
.rows { gap: 10px; }
.row-card { flex-direction: row; align-items: center; gap: 12px; text-align: left; }
.row-card .size-update { flex: none; width: 88px; }
.row-card .text { display: flex; flex-direction: column; justify-content: center; }
.row-card .title { font-size: 15px; white-space: normal; }
.row-card .sub { font-size: 12px; white-space: normal; }
.row-card .date { font-size: 10px; white-space: normal; }

/* Strips and hot grids keep the same one-per-row shape. */
.strip { gap: 10px; }
.strip .item { display: flex; flex-direction: row; align-items: center; gap: 12px; text-align: left; }
.strip .item > .rank-wrap, .strip .item > .sk-box { flex: none; width: 88px; }
.strip .item .app-icon, .strip .item .icon-fallback { width: 100%; height: auto; aspect-ratio: 1; margin: 0; }
.strip .item .name { font-size: 15px; white-space: normal; }
.hot-grid { gap: 10px; }
.hot-grid .item { display: flex; flex-direction: row; align-items: center; gap: 12px; text-align: left; }
.hot-grid .item .app-icon, .hot-grid .item .icon-fallback, .hot-grid .item .size-grid { flex: none; width: 88px; height: auto; aspect-ratio: 1; margin: 0; }
.hot-grid .name { margin-top: 0; font-size: 15px; white-space: normal; }

@media (max-width: 760px) {
  #home .icon-card .adult-icon-wrap { width: 104px; }
  #home .icon-card .size-popular { width: 26px; height: 26px; }
  #home .icon-card-label strong { font-size: 13px; }
  #home .icon-card-label small { font-size: 10px; }
  .row-card .size-update, .strip .item > .rank-wrap, .strip .item > .sk-box,
  .hot-grid .item .app-icon, .hot-grid .item .icon-fallback, .hot-grid .item .size-grid { width: 72px; }
  .row-card .title, .strip .item .name, .hot-grid .name { font-size: 13px; }
}

/* Row affordance: a chevron at the end of each single-column card. */
a.icon-card::after, a.row-card::after {
  content: "›";
  flex: none;
  align-self: center;
  font-size: 22px;
  line-height: 1;
  color: var(--sub);
}

/* Short description under the name in single-column rows. */
.icon-card-desc, .row-desc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--sub);
}
@media (max-width: 760px) {
  .icon-card-desc, .row-desc { -webkit-line-clamp: 1; font-size: 11px; }
}

/* Cosmo V24 — clean article detail and adult-only native placements. */
.frame.narrow { max-width: 780px; }
.detail-head { border-bottom: 1px solid var(--border); }
.detail-foreground { padding: 24px 0; }
.has-cover .detail-foreground { min-height: 300px; padding: 28px; }
.detail-top h1 { font-size: 30px; line-height: 1.2; }
.detail-top .dev { font-size: 13px; }
.detail-head .download-actions { margin-top: 18px; }
.section { padding: 32px 0; }
.section > h2 { margin: 0 0 18px; font-size: 22px; line-height: 1.25; }
.about { max-width: 680px; }
.stats { padding: 0 0 18px; margin-bottom: 18px; border-bottom: 1px solid var(--border); }
.description-collapse { margin-top: 0; font-size: 16px; line-height: 1.8; }
.description-collapse summary { padding: 0; list-style-position: inside; font-size: 17px; }
.description-preview { margin-top: 10px; font-size: 15px; line-height: 1.7; }
.description-collapse p { margin-top: 18px; font-size: 16px; line-height: 1.8; }
.adult-native-banner { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--border); }
.download-native-banner { margin: 24px 0 4px; text-align: center; }

@media (max-width: 520px) {
  .frame.narrow { padding-left: 16px; padding-right: 16px; }
  .has-cover .detail-foreground { min-height: 235px; padding: 20px 16px; }
  .detail-top h1 { font-size: 23px; }
  .section > h2 { font-size: 20px; }
  .description-collapse, .description-collapse p { font-size: 15px; }
}

/* Home: itch.io / blog style post cards, one per line, full width */
main.frame .post-list { display: flex; flex-direction: column; gap: 18px; margin-top: 12px; }
.post-card { display: block; background: var(--card); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; color: inherit; text-decoration: none; }
.post-media { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; background: var(--muted); overflow: hidden; }
.post-cover { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-media.is-locked .post-cover { filter: blur(14px); transform: scale(1.12); }
.post-media .adult-lock { position: absolute; inset: 0; display: grid; place-items: center; font-size: 34px; }
.post-tag { position: absolute; top: 10px; left: 10px; padding: 2px 8px; border-radius: 4px; background: rgba(0,0,0,.65); color: #fff; font-size: 11px; font-weight: 700; }
.post-body { display: block; padding: 12px 14px 14px; }
.post-title { display: block; font-size: 16px; font-weight: 700; line-height: 1.3; }
.post-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 6px; font-size: 13px; color: var(--sub); line-height: 1.45; }
.post-meta { display: flex; gap: 12px; margin-top: 10px; font-size: 12px; color: var(--sub); }
.post-dl { font-weight: 600; }

/* Classic WordPress blog look */
main.frame { max-width: 720px; margin-left: auto; margin-right: auto; }
#home .store-intro { border-bottom: 3px double #d8d8d8; padding-bottom: 10px; }
.blog-heading { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: 26px; letter-spacing: .2px; color: #222; }
main.frame .post-list { gap: 0; }
.post-card { border: 0; border-radius: 0; border-bottom: 1px solid #e5e5e5; padding: 22px 0 26px; background: transparent; }
.post-head { display: block; margin-bottom: 12px; }
.post-title { font-family: Georgia, "Times New Roman", serif; font-size: 21px; font-weight: 400; line-height: 1.3; color: #21759b; }
.post-card:hover .post-title { color: #0f3647; text-decoration: underline; }
.post-media { border-radius: 2px; border: 1px solid #e5e5e5; }
.post-tag { border-radius: 2px; background: #c0392b; }
.post-body { padding: 12px 0 0; }
.post-desc { font-family: Georgia, "Times New Roman", serif; font-size: 15px; color: #444; line-height: 1.6; -webkit-line-clamp: 3; margin-top: 0; }
.post-meta { font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: #888; gap: 0; }
.post-meta span + span::before { content: "·"; margin: 0 8px; }
.post-dl { color: #555; }
.post-more { display: inline-block; margin-top: 10px; font-size: 13px; color: #21759b; }

/* Blog style on every page */
main.frame h1, main.frame .section-title h2, main.frame .detail h1, main.frame h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; color: #222; }
main.frame .section-title { border-bottom: 3px double #d8d8d8; padding-bottom: 8px; }
.cat-item { border: 0 !important; border-bottom: 1px solid #e5e5e5 !important; border-radius: 0 !important; background: transparent !important; padding: 14px 0 !important; }
.cat-item strong { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: 17px; color: #21759b; }
main.frame p, .desc, .description { font-family: Georgia, "Times New Roman", serif; line-height: 1.65; }

/* Game page & download page — classic blog article */
#app-root, #download-root { max-width: 720px; margin: 0 auto; }
.detail-head.post-article { background: transparent; border: 0; padding: 22px 16px 8px; overflow: visible; }
.post-article .detail-foreground { min-height: 0; background: none; color: inherit; text-shadow: none; display: block; }
.article-title { font-family: Georgia, "Times New Roman", serif !important; font-weight: 400 !important; font-size: 28px !important; line-height: 1.25; color: #222 !important; margin: 0 0 8px; }
.article-meta { margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid #e5e5e5; flex-wrap: wrap; }
.article-figure { margin: 0 0 18px; }
.article-cover { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid #e5e5e5; border-radius: 2px; }
.post-article .download-actions { display: flex; flex-direction: column; gap: 8px; }
.post-article .download-actions .btn { width: 100%; justify-content: center; border-radius: 2px; background: #21759b; color: #fff; border-color: #21759b; font-weight: 600; }
.post-article ~ .section, #app-root .section { padding-left: 16px; padding-right: 16px; }
#app-root .section h2, #download-root h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: 20px; color: #222; border-bottom: 3px double #d8d8d8; padding-bottom: 6px; }
#app-root .about { background: transparent; border: 0; padding: 0; }
#app-root .stat { border-left: 0; padding: 0; }
#app-root .stat b { font-family: Georgia, serif; font-weight: 400; color: #21759b; }
#app-root .about p, #download-root .download-copy p, .collapsed-desc, #app-root .about { font-family: Georgia, "Times New Roman", serif; font-size: 15px; line-height: 1.7; color: #444; }
.cosmo-promo { border-radius: 2px !important; margin: 14px 16px 0 !important; }
.download-summary { display: block !important; }
.download-copy .download-size { font-family: inherit !important; font-size: 11px !important; text-transform: uppercase; letter-spacing: .6px; color: #888 !important; border-bottom: 1px solid #e5e5e5; padding-bottom: 10px; }
.download-timer { font-family: Georgia, serif; font-size: 15px; text-align: center; border-top: 1px solid #e5e5e5; padding-top: 14px; }
.download-ready { border-radius: 2px !important; background: #21759b !important; color: #fff !important; border-color: #21759b !important; }

.article-body { border-top: 0 !important; padding-top: 0 !important; }
.article-p { margin: 0 0 16px; font-family: Georgia, "Times New Roman", serif; font-size: 16px; line-height: 1.8; color: #333; }
.article-shot { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.article-shot img { display: block; width: 100% !important; height: auto !important; max-height: none !important; aspect-ratio: auto !important; object-fit: contain !important; border: 1px solid #e5e5e5; border-radius: 2px; }

/* v29 — sort options, hot 18+ ticker, recommended games, clean menu, blog search */
.store-intro { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sort-bar { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--sub); }
.sort-select { height: 34px; padding: 0 28px 0 10px; border: 1px solid #ccc; border-radius: 3px; background: #fff; font: inherit; color: var(--fg); }
.hot-ticker { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 14px; background: #1d2327; color: #fff; font-size: 13px; overflow: hidden; }
.hot-label { flex: none; padding: 2px 8px; border-radius: 3px; background: #d63638; font-weight: 700; font-size: 12px; }
.hot-item { color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: Georgia, serif; }
.hot-item.in { animation: hotIn .45s ease; }
@keyframes hotIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.recommend { margin-top: 32px; padding-top: 20px; border-top: 1px solid #e5e5e5; }
.recommend-title { margin: 0 0 14px; font-family: Georgia, serif; font-weight: 400; font-size: 22px; }
.recommend-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
@media (min-width: 640px) { .recommend-list { grid-template-columns: repeat(3, minmax(0,1fr)); } }
.recommend-item { display: block; color: inherit; text-decoration: none; }
.recommend-thumb { display: block; aspect-ratio: 16/10; background: var(--muted); overflow: hidden; }
.recommend-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.recommend-thumb.is-locked img { filter: blur(12px); transform: scale(1.12); }
.recommend-text { display: block; padding-top: 6px; }
.recommend-text strong { display: block; font-family: Georgia, serif; font-weight: 400; font-size: 14px; color: #21759b; line-height: 1.3; }
.recommend-text small { font-size: 11px; color: var(--sub); }
/* Clean menu */
.nav a { font-weight: 500; }
@media (max-width: 760px) {
  .nav { background: #fff; border: 0; border-right: 1px solid #e5e5e5; box-shadow: 4px 0 24px rgba(0,0,0,.12); padding: 6px 0; border-radius: 0; height: calc(100dvh - 50px); }
  .nav a { border-radius: 0; font-size: 14px; padding: 13px 18px; border-bottom: 1px solid #f0f0f0; color: #1d2327; }
  .nav a:hover, .nav a.active { background: #f6f7f7; color: #21759b; }
  .menu-extra { display: none; }
}
/* Blog-style search */
.search-heading h1 { font-family: Georgia, serif; font-weight: 400; font-size: 28px; }
.wp-search { display: grid; gap: 10px; padding: 0 0 18px; border-bottom: 1px solid #e5e5e5; background: transparent; box-shadow: none; border-radius: 0; }
.wp-search input, .wp-search select { height: 40px; border: 1px solid #ccc; border-radius: 3px; padding: 0 10px; font: inherit; background: #fff; }
.wp-search input:focus, .wp-search select:focus { outline: 2px solid #21759b; border-color: #21759b; }
.wp-search .sort-bar { justify-content: space-between; }
@media (min-width: 640px) { .wp-search { grid-template-columns: 1fr 1fr 1fr; } .wp-search label:first-child { grid-column: 1 / -1; } }
.result-count { font-family: Georgia, serif; font-style: italic; color: var(--sub); }

/* v29 — WordPress-style category archive */
#categories .section { padding: 22px 0; }
#categories .section-title h2 { font-family: Georgia, serif; font-weight: 400; font-size: 22px; margin: 0 0 8px; padding-bottom: 8px; border-bottom: 2px solid #1d2327; }
#categories .cat-list { display: block; }
#categories .cat-item { display: flex; align-items: baseline; gap: 10px; padding: 12px 2px; border: 0; border-bottom: 1px solid #e5e5e5; border-radius: 0; background: transparent; box-shadow: none; }
#categories .cat-item:hover { background: transparent; }
#categories .cat-item strong { font-family: Georgia, serif; font-weight: 400; font-size: 17px; color: #21759b; }
#categories .cat-item:hover strong { text-decoration: underline; }
#categories .cat-item span.sub { font-size: 12px; color: var(--sub); }
#categories .cat-count { font-size: 13px; color: var(--sub); }
.post-media .adult-lock { font-size: 13px; font-weight: 600; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.6); }

/* Theme switch in menu */
.theme-switch { display: flex; flex-direction: column; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--border); }
.theme-switch strong { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--sub); }
.theme-row { display: flex; gap: 6px; }
.theme-btn { flex: 1; height: 34px; border: 1px solid var(--border); border-radius: 3px; background: var(--bg); color: var(--fg); font: inherit; font-size: 13px; cursor: pointer; white-space: nowrap; padding: 0 10px; }
.theme-btn.active { background: #21759b; border-color: #21759b; color: #fff; }
@media (min-width: 761px) { .theme-switch { flex-direction: row; align-items: center; border: 0; padding: 0 0 0 10px; } .theme-switch strong { display: none; } .theme-btn { height: 30px; font-size: 12px; } }

/* Dark mode */
[data-theme="dark"] { --bg: #101214; --card: #181b1f; --muted: #23272c; --border: #2e3338; --fg: #e8e8e8; --body: #c9cdd2; --sub: #9aa1a9; color-scheme: dark; }
[data-theme="dark"] body { background: var(--bg); color: var(--fg); }
[data-theme="dark"] .site-header { background: #15181b !important; }
[data-theme="dark"] .nav { background: #15181b !important; border-color: var(--border) !important; }
[data-theme="dark"] .nav a { color: var(--body) !important; border-color: var(--border) !important; }
[data-theme="dark"] .nav a:hover, [data-theme="dark"] .nav a.active { background: var(--muted) !important; color: #6cb6e0 !important; }
[data-theme="dark"] .menu-toggle span { background: var(--fg); }
[data-theme="dark"] .brand img { filter: invert(1) hue-rotate(180deg); }
[data-theme="dark"] .post-title, [data-theme="dark"] .recommend-text strong, [data-theme="dark"] #categories .cat-item strong, [data-theme="dark"] .post-more, [data-theme="dark"] a { color: #6cb6e0; }
[data-theme="dark"] .post-card, [data-theme="dark"] #categories .cat-item, [data-theme="dark"] .recommend, [data-theme="dark"] .wp-search { border-color: var(--border); }
[data-theme="dark"] #categories .section-title h2 { border-color: var(--fg); }
[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] .article-title { color: var(--fg); }
[data-theme="dark"] input, [data-theme="dark"] select, [data-theme="dark"] .sort-select { background: var(--card); color: var(--fg); border-color: var(--border); }
[data-theme="dark"] .btn.outline { background: var(--card); color: var(--fg); }
[data-theme="dark"] .site-footer { background: var(--bg); color: var(--sub); border-color: var(--border); }
[data-theme="dark"] .post-desc, [data-theme="dark"] p { color: var(--body); }
[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3, [data-theme="dark"] .blog-heading, [data-theme="dark"] .page-heading h1, [data-theme="dark"] .section-title h2 { color: var(--fg) !important; }
