/* App theme — light. A site about one app or game. System fonts only (Core Web Vitals); --brand from site settings. */
:root {
  --brand: #0a7c5c; --brand-soft: color-mix(in srgb, var(--brand) 10%, #fff);
  --text: #1f1f1f; --muted: #5f6368; --faint: #80868b; --bg: #ffffff; --surface: #f8f9fa; --line: #e3e5e8;
  --star: #f4b400; --star-off: #dadce0; --good: #188038; --bad: #c5221f;
  --maxw: 1040px; --radius: 16px; color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans Thai', 'Leelawadee UI', Tahoma, sans-serif; font-size: 16px; line-height: 1.65; color: var(--text); background: var(--bg); }
img, video { max-width: 100%; height: auto; }
a { color: var(--brand); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--bg); padding: 6px 10px; z-index: 10; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: rgb(255 255 255 / .92); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 19px; color: var(--text); text-decoration: none; letter-spacing: -.01em; }
.brand img { width: 32px; height: 32px; border-radius: 9px; object-fit: cover; }
.tagline { color: var(--muted); font-size: 14px; }
main { padding-top: 32px; padding-bottom: 72px; min-height: 60vh; }
h1, h2, h3 { line-height: 1.3; letter-spacing: -.01em; }
h1 { font-size: clamp(28px, 4.6vw, 44px); font-weight: 600; margin: 0; }
h2 { font-size: 22px; font-weight: 600; margin: 0 0 16px; }
.lead { font-size: 18px; color: var(--muted); margin: 18px 0 0; max-width: 680px; }
.button { display: inline-block; padding: 10px 20px; border-radius: 999px; background: var(--brand); color: #fff; text-decoration: none; font-weight: 600; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 20px; font-size: 14px; color: var(--muted); }
.breadcrumb li + li::before { content: '›'; margin-right: 6px; }
.notice { text-align: center; padding: 56px 0; }
.block { margin-top: 44px; }

/* Hero */
.app-id { display: flex; align-items: center; gap: 24px; }
.app-icon { width: 128px; height: 128px; border-radius: 28px; object-fit: cover; box-shadow: 0 1px 3px rgb(60 64 67 / .3), 0 4px 12px rgb(60 64 67 / .15); flex: none; background: var(--surface); }
.app-dev { margin: 6px 0 0; color: var(--brand); font-weight: 600; font-size: 17px; }
.app-tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 0; }
.app-tags span { font-size: 13px; padding: 3px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); background: #fff; }
.app-stats { display: flex; flex-wrap: wrap; margin: 26px 0 0; padding: 0; }
.app-stats > div { padding: 2px 26px; text-align: center; border-left: 1px solid var(--line); }
.app-stats > div:first-child { padding-left: 0; border-left: 0; text-align: left; }
.app-stats dt { display: flex; align-items: center; gap: 4px; justify-content: center; font-size: 15px; }
.app-stats > div:first-child dt { justify-content: flex-start; }
.app-stats dt strong { font-size: 17px; font-weight: 600; }
.app-stats dd { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.app-get { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-top: 26px; }
.get-btn { display: inline-flex; align-items: center; gap: 10px; min-width: 260px; justify-content: center; padding: 13px 28px; border-radius: 12px; background: var(--brand); color: #fff; text-decoration: none; font-weight: 600; font-size: 17px; box-shadow: 0 1px 2px rgb(0 0 0 / .12); transition: filter .15s, transform .15s; }
.get-btn svg { width: 22px; height: 22px; fill: currentColor; flex: none; }
.get-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.get-note { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.qr { margin: 0; display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border: 1px solid var(--line); border-radius: 14px; }
.qr svg { width: 96px; height: 96px; display: block; }
.qr figcaption { font-size: 13px; color: var(--muted); max-width: 130px; line-height: 1.4; }

/* Screenshots */
.shots { list-style: none; margin: 0; padding: 2px 2px 12px; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.shots li { flex: none; scroll-snap-align: start; }
.shots img { height: 380px; width: auto; max-width: none; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); display: block; }

/* About + features */
.about { max-width: 780px; margin: 0 0 20px; white-space: pre-line; }
.features { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.features li { display: flex; gap: 12px; padding: 16px; border-radius: var(--radius); background: var(--surface); }
.feat-dot { width: 10px; height: 10px; margin-top: 8px; border-radius: 50%; background: var(--brand); flex: none; }
.features h3 { margin: 0 0 2px; font-size: 16px; font-weight: 600; }
.features p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* Stars */
.stars { display: inline-flex; gap: 1px; color: var(--star); vertical-align: middle; }
.star { width: 15px; height: 15px; fill: currentColor; }
.star.empty { fill: var(--star-off); }

/* Editorial review */
.editorial { display: flex; gap: 26px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, var(--brand-soft), #fff 60%); }
.score { --p: 0; flex: none; width: 104px; height: 104px; border-radius: 50%; display: grid; place-content: center; text-align: center; background: radial-gradient(closest-side, #fff 79%, transparent 80% 100%), conic-gradient(var(--brand) calc(var(--p) * 1%), var(--line) 0); }
.score strong { font-size: 32px; line-height: 1; font-weight: 700; color: var(--brand); }
.score span { font-size: 13px; color: var(--muted); }
.editorial-body { flex: 1; min-width: 0; }
.verdict { margin: 0 0 14px; font-size: 17px; }
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.proscons h3 { font-size: 15px; margin: 0 0 6px; }
.proscons ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 15px; }
.proscons li { position: relative; padding-left: 22px; }
.pros li::before { content: '+'; position: absolute; left: 4px; color: var(--good); font-weight: 700; }
.cons li::before { content: '–'; position: absolute; left: 4px; color: var(--bad); font-weight: 700; }
.byline { margin: 16px 0 0; font-size: 13px; color: var(--faint); }

/* Store ratings + reviews */
.ratings { display: grid; grid-template-columns: 200px 1fr; gap: 28px; align-items: start; }
.rating-big { display: grid; justify-items: start; gap: 4px; }
.rating-big strong { font-size: 56px; line-height: 1; font-weight: 500; }
.rating-big .star { width: 18px; height: 18px; }
.rating-big > span:not(.stars) { font-size: 13px; color: var(--muted); }
.reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.review { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); }
.review header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.review-meta { font-size: 12.5px; color: var(--faint); }
.review h3 { font-size: 15.5px; margin: 8px 0 4px; }
.review p { margin: 0; font-size: 14.5px; color: #3c4043; }
.source { margin: 14px 0 0; font-size: 13px; color: var(--faint); }
.notes { white-space: pre-line; max-width: 780px; margin: 0; }

/* Details */
.info { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 24px; margin: 0; }
.info > div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.info dt { font-size: 13px; color: var(--muted); }
.info dd { margin: 2px 0 0; font-weight: 500; }

/* Articles */
.cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.card { border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; background: #fff; padding-bottom: 14px; transition: box-shadow .15s; }
.card:hover { box-shadow: 0 4px 14px rgb(60 64 67 / .12); }
.card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.card h3 { margin: 12px 16px 4px; font-size: 17px; }
.card h3 a { color: var(--text); text-decoration: none; }
.card h3 a:hover { color: var(--brand); }
.card p { margin: 4px 16px; font-size: 14.5px; }
.meta { color: var(--muted); font-size: 13.5px; }

/* Article page (shared partials: site_article, site_listing, site_author) */
.post { max-width: 760px; }
.kicker { margin: 0 0 6px; font-size: 14px; font-weight: 600; }
.kicker a { text-decoration: none; }
.post-header { margin-bottom: 20px; }
.featured { width: 100%; border-radius: var(--radius); margin: 0 0 24px; }
.article-body { font-size: 18px; line-height: 1.85; }
.article-body h2 { margin-top: 36px; }
.article-body h3 { font-size: 20px; margin-top: 28px; }
.article-body img { border-radius: 12px; }
.article-body blockquote { margin: 20px 0; padding: 4px 18px; border-left: 3px solid var(--brand); color: var(--muted); }
.article-body pre { overflow-x: auto; background: var(--surface); padding: 14px; border-radius: 10px; font-size: 15px; }
.article-body table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 6px 10px; }
.author-box { margin-top: 36px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.author-box p { margin: 4px 0; }
.related { margin-top: 48px; }
.author-hero { display: flex; gap: 20px; align-items: flex-start; }
.author-hero .avatar { border-radius: 50%; flex: none; }

.site-footer { margin-top: 24px; border-top: 1px solid var(--line); background: var(--surface); font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 22px; padding-bottom: 22px; }
.site-footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }

@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .app-id { gap: 16px; align-items: flex-start; }
  .app-icon { width: 84px; height: 84px; border-radius: 20px; }
  .app-stats { flex-wrap: nowrap; overflow-x: auto; }
  .app-stats > div { padding: 2px 16px; flex: none; }
  .get-btn { width: 100%; min-width: 0; }
  .app-get > .get-main { width: 100%; }
  .qr { display: none; }
  .shots img { height: 300px; }
  .editorial { flex-direction: column; gap: 16px; padding: 18px; }
  .proscons { grid-template-columns: 1fr; }
  .ratings { grid-template-columns: 1fr; gap: 16px; }
  .reviews { grid-template-columns: 1fr; }
}
