:root {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #20202a;
  background: #f7f8fc;
  --accent: #6656e8;
  --accent-strong: #3d55c7;
  --soft: #eeeaff;
  --surface: #ffffff;
  --muted: #626575;
  --border: #e3e4ed;
}

html[data-theme="life"] {
  --accent: #d7783d;
  --accent-strong: #4c9b6b;
  --soft: #fff0df;
}

* { box-sizing: border-box; }
body { margin: 0; line-height: 1.7; }
a { color: inherit; }
.site-header, main, footer { max-width: 760px; margin: auto; padding: 20px; }
.site-header { background: linear-gradient(135deg, var(--soft), transparent); }
.brand { color: var(--accent); font-size: 1.7rem; font-weight: 800; text-decoration: none; }
.site-header p { margin: .2rem 0; color: var(--muted); }
nav { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.category-grid a, .related-app { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px; text-decoration: none; }
.category-grid span { display: block; color: var(--muted); font-size: .8rem; }
.notice, .ad-note, .guide { border-left: 4px solid var(--accent); background: var(--soft); padding: 12px 16px; }
.guide { margin: 20px 0; }
.app-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 3px 14px #00000012; margin: 16px 0; padding: 18px; }
.card-head { display: flex; gap: 12px; }
.card-head img { width: 64px; height: 64px; border-radius: 15px; object-fit: cover; }
.card-head h2 { display: inline; font-size: 1.1rem; }
.number-badge { display: inline-grid; place-items: center; width: 25px; height: 25px; border: 1px solid var(--border); border-radius: 50%; color: var(--muted); font-size: .8rem; margin-right: 4px; }
.developer, .source, .price { color: var(--muted); font-size: .85rem; }
.developer { margin: 0; }
.tags span { background: var(--soft); border-radius: 9px; font-size: .75rem; margin-right: 4px; padding: 2px 7px; }
.catch { font-weight: 700; }
.app-card li { margin: 4px 0; }
.writer { display: flex; gap: 10px; background: var(--soft); border-radius: 12px; padding: 10px; }
.writer p { margin: 0; font-size: .88rem; }
.avatar { display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; }
.stores { display: flex; gap: 8px; margin-top: 14px; }
.store { flex: 1; border-radius: 10px; background: var(--accent-strong); color: #fff; padding: 10px; text-align: center; text-decoration: none; font-weight: 700; }
.pr-label { border: 1px solid currentColor; border-radius: 4px; color: #a23b00; font-size: .7rem; padding: 1px 4px; }
.faq details { border-bottom: 1px solid var(--border); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 700; }
.related-list { display: flex; flex-wrap: wrap; gap: 10px; }
.related-app { align-items: center; display: flex; gap: 8px; padding: 8px; }
.related-app img { width: 40px; height: 40px; border-radius: 9px; }
footer { margin-top: 30px; color: var(--muted); font-size: .85rem; }
html.is-ios .store.android, html.is-android .store.ios { display: none; }
@media (max-width: 600px) { .category-grid { grid-template-columns: 1fr; } .stores { flex-direction: column; } }
@media (prefers-color-scheme: dark) { :root { color: #eee; background: #17181c; --surface: #24262c; --muted: #b8bac5; --border: #3b3e48; } }
.privacy-table { width: 100%; border-collapse: collapse; margin: 12px 0 18px; font-size: .9rem; }
.privacy-table th, .privacy-table td { border: 1px solid var(--border); padding: 8px; text-align: left; vertical-align: top; }
@media (max-width: 600px) { .privacy-table { font-size: .8rem; } }
.top-section { margin-top: 28px; }
.top-section h3 { font-size: 1.02rem; margin: 18px 0 4px; }
.more { text-align: right; font-size: .9rem; margin: 4px 0 0; }
.article-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 10px 0; }
.article-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; display: flex; gap: 10px; padding: 12px; text-decoration: none; }
.article-card img { width: 56px; height: 56px; border-radius: 13px; object-fit: cover; flex: 0 0 56px; }
.article-card strong { display: block; font-size: .92rem; line-height: 1.4; }
.article-card span { color: var(--muted); font-size: .8rem; }
@media (max-width: 600px) { .article-grid { grid-template-columns: 1fr; } }
