/* iClient public site styles. No external assets.
   Light theme by default; dark theme via :root[data-theme="dark"] (toggled by /static/js/site.js). */

:root {
  --bg: #f4f5f9;
  --surface: #ffffff;
  --surface-2: #f8f9fc;
  --surface-sunk: #eceef5;
  --text: #121631;
  --text-2: #474d68;
  --text-3: #686e88;
  --border: rgba(18, 22, 49, .08);
  --border-strong: rgba(18, 22, 49, .15);
  --accent: #2f45d8;
  --accent-hover: #2337bd;
  --accent-soft: rgba(47, 69, 216, .08);
  --accent-text: #ffffff;
  --brand-grad: linear-gradient(135deg, #2557e8 0%, #3a3dd6 48%, #5530c0 100%);
  --night: #0c0f2e;
  --night-2: #161a4a;
  --amber: #ffb23f;
  --amber-grad: linear-gradient(90deg, #ffca5c, #ff9a3c);
  --green: #13804a;
  --green-soft: rgba(19, 128, 74, .1);
  --red: #c42b2b;
  --red-soft: rgba(196, 43, 43, .08);
  --orange: #c45a00;
  --header-bg: rgba(255, 255, 255, .86);
  --hero-wash: radial-gradient(1000px 420px at 85% -10%, rgba(76, 84, 240, .16), transparent 60%),
    radial-gradient(700px 360px at -5% 110%, rgba(37, 87, 232, .09), transparent 60%);
  --shadow-sm: 0 1px 2px rgba(18, 22, 49, .05);
  --shadow: 0 1px 2px rgba(18, 22, 49, .04), 0 8px 24px -8px rgba(18, 22, 49, .1);
  --shadow-lift: 0 2px 4px rgba(18, 22, 49, .04), 0 18px 40px -14px rgba(31, 44, 140, .24);
  --icon-shadow: 0 1px 2px rgba(18, 22, 49, .12), 0 4px 10px rgba(18, 22, 49, .08);
  --radius-lg: 22px;
  --radius: 16px;
  --radius-sm: 10px;
  --focus: 0 0 0 3px rgba(47, 69, 216, .4);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans CJK SC", "Helvetica Neue", Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans CJK SC", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --wrap: 1240px;
  --side: 320px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0b0d1c;
  --surface: #141830;
  --surface-2: #181d38;
  --surface-sunk: #1f2442;
  --text: #eef0fb;
  --text-2: #b6bbd4;
  --text-3: #9095b2;
  --border: rgba(255, 255, 255, .08);
  --border-strong: rgba(255, 255, 255, .16);
  --accent: #8b98ff;
  --accent-hover: #a7b1ff;
  --accent-soft: rgba(139, 152, 255, .14);
  --accent-text: #0b0e26;
  --night: #080a1f;
  --night-2: #131848;
  --green: #5cd396;
  --green-soft: rgba(92, 211, 150, .14);
  --red: #ff7b72;
  --red-soft: rgba(255, 123, 114, .13);
  --orange: #ffad5c;
  --header-bg: rgba(11, 13, 28, .84);
  --hero-wash: radial-gradient(1000px 420px at 85% -10%, rgba(98, 108, 255, .22), transparent 60%),
    radial-gradient(700px 360px at -5% 110%, rgba(37, 87, 232, .12), transparent 60%);
  --shadow-sm: none;
  --shadow: 0 0 0 1px rgba(255, 255, 255, .03);
  --shadow-lift: 0 18px 40px -14px rgba(0, 0, 0, .6);
  --icon-shadow: 0 1px 3px rgba(0, 0, 0, .5);
  --focus: 0 0 0 3px rgba(139, 152, 255, .55);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15.5px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.25; margin: 0; letter-spacing: -.015em; }
p { margin: 0 0 .75em; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 8px; }
s { text-decoration-thickness: 1px; }
[hidden] { display: none !important; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 100; padding: 8px 14px; background: var(--accent); color: var(--accent-text); border-radius: 8px; }
.skip-link:focus { top: 12px; }
.muted { color: var(--text-3); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--border);
}
.header-row { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); flex: none; }
.brand:hover { text-decoration: none; color: var(--text); }
.brand-mark {
  flex: none; width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 18px; color: #fff;
  background: var(--brand-grad);
  box-shadow: 0 4px 12px -2px rgba(47, 69, 216, .45), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.brand-name { font-family: var(--display); font-size: 19px; font-weight: 800; letter-spacing: -.02em; }

.main-nav { flex: 1 1 auto; min-width: 0; }
.nav-scroll {
  display: flex; gap: 2px; overflow-x: auto; overscroll-behavior-x: contain;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.nav-scroll::-webkit-scrollbar { display: none; }
.nav-scroll a {
  flex: none; padding: 7px 12px; border-radius: 9px; color: var(--text-2); font-size: 14.5px; white-space: nowrap;
}
.nav-scroll a:hover { color: var(--text); background: var(--surface-sunk); text-decoration: none; }
.main-nav a { font-weight: 500; }
.main-nav a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.main-nav .nav-ai::after {
  content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 5px; vertical-align: 2px;
  border-radius: 50%; background: var(--amber);
}

.header-tools { display: flex; align-items: center; gap: 8px; flex: 0 1 300px; min-width: 0; }
.search { position: relative; display: flex; flex: 1 1 auto; min-width: 0; }
.search-icon { position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; margin-top: -8px; color: var(--text-3); pointer-events: none; }
.search input {
  width: 100%; min-width: 0; height: 38px; padding: 0 12px 0 36px;
  border: 1px solid transparent; border-radius: 11px;
  background: var(--surface-sunk); color: var(--text); font: inherit; font-size: 14px;
  transition: background .15s, border-color .15s;
}
.search input:focus { outline: none; background: var(--surface); border-color: var(--accent); box-shadow: var(--focus); }
.theme-toggle {
  flex: none; display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 0;
  border: 1px solid var(--border); border-radius: 11px; background: var(--surface); color: var(--text-2); cursor: pointer;
}
.theme-toggle:hover { color: var(--text); border-color: var(--border-strong); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.cat-bar { border-top: 1px solid var(--border); }
.cat-bar .nav-scroll { padding-top: 8px; padding-bottom: 8px; gap: 4px; }
.cat-bar a { font-size: 13.5px; padding: 4px 12px; border-radius: 999px; }
.cat-bar a[aria-current="page"] { background: var(--text); color: var(--bg); }
.cat-count { margin-left: 5px; font-size: 11px; opacity: .6; font-variant-numeric: tabular-nums; }

@media (max-width: 1080px) {
  .header-row { flex-wrap: wrap; height: auto; padding-top: 12px; gap: 10px 16px; }
  .header-tools { margin-left: auto; }
  .main-nav { order: 3; flex: 1 1 100%; margin: 0 -12px; padding: 0 12px 6px; }
}
@media (max-width: 640px) {
  .header-tools { flex: 1 1 0; }
  .brand-name { font-size: 17px; }
  .site-header { position: static; }
}

/* ---------- layout ---------- */
.site-main { padding-bottom: 72px; }
.site-main > .wrap:first-child { padding-top: 36px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) var(--side); gap: 32px; align-items: start; }
.main-col, .side-col { min-width: 0; }
.side-col { display: flex; flex-direction: column; gap: 18px; }
.sidebar { display: flex; flex-direction: column; gap: 18px; }
@media (max-width: 960px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 961px) {
  .layout-form .side-col { position: sticky; top: 88px; }
}

.card, .panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card { padding: 28px; margin-bottom: 24px; }
.panel { padding: 20px; }
.panel h2 { font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.panel-head, .section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.panel-head h2 { margin: 0; }
.section-head h2 { font-size: 26px; font-weight: 800; letter-spacing: -.025em; }
.card-title { font-size: 19px; font-weight: 700; margin-bottom: 12px; }
.card .section-head h2 { font-size: 22px; }
.more { font-size: 14px; color: var(--text-3); white-space: nowrap; }
.more::after { content: " ›"; }
.more:hover { color: var(--accent); text-decoration: none; }
.section { margin: 0 0 48px; }
.page-head { margin-bottom: 22px; }
.page-head h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -.03em; margin-bottom: 8px; }
.page-desc { color: var(--text-2); font-size: 16px; margin: 0 0 4px; max-width: 46em; }
.page-count { color: var(--text-3); font-size: 14px; margin: 0; }
.sub-head { font-size: 18px; margin: 4px 0 14px; }
.list-more { text-align: center; margin: 22px 0 0; }

/* ---------- buttons & chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 40px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent;
  background: var(--accent); color: var(--accent-text); font: inherit; font-size: 14.5px; font-weight: 600;
  cursor: pointer; white-space: nowrap; transition: background .15s, box-shadow .15s, transform .05s, opacity .15s;
}
.btn:hover { background: var(--accent-hover); color: var(--accent-text); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-primary { background: var(--brand-grad); color: #fff; box-shadow: 0 6px 16px -6px rgba(47, 69, 216, .6), inset 0 1px 0 rgba(255, 255, 255, .18); }
.btn-primary:hover { background: var(--brand-grad); color: #fff; box-shadow: 0 10px 22px -8px rgba(47, 69, 216, .7), inset 0 1px 0 rgba(255, 255, 255, .18); filter: brightness(1.06); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface-2); color: var(--accent); border-color: var(--accent); }
.btn-small { height: 32px; padding: 0 13px; font-size: 13.5px; border-radius: 9px; }
.btn-large { height: 48px; padding: 0 24px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-light { background: #fff; color: var(--night); }
.btn-light:hover { background: #eef0ff; color: var(--night); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .08); color: #fff; border-color: #fff; }
.btn-vote { background: var(--amber-grad); color: #2a1600; }
.btn-vote:hover { background: var(--amber-grad); color: #2a1600; filter: brightness(1.05); }
.btn-reward {
  width: 100%; height: 44px; background: rgba(255, 255, 255, .1); color: #fff;
  border-color: rgba(255, 255, 255, .25); white-space: normal; line-height: 1.3; text-align: center;
}
.btn-reward:hover { background: rgba(255, 255, 255, .16); color: #fff; }

.chip {
  display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 7px;
  background: var(--surface-sunk); color: var(--text-2); font-size: 12.5px; white-space: nowrap;
}
a.chip:hover { text-decoration: none; color: var(--accent); }
.chip-cat { background: var(--accent-soft); color: var(--accent); font-weight: 500; }
.badge {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px;
  font-size: 12px; font-weight: 600; background: var(--surface-sunk); color: var(--text-2);
  vertical-align: middle; letter-spacing: 0;
}
.badge-license, .badge-new, .badge-done { background: var(--green-soft); color: var(--green); }

/* platform pills */
.pf-icon { width: 13px; height: 13px; flex: none; }
.pf-list { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.pf {
  display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 7px 0 6px;
  border-radius: 6px; border: 1px solid var(--border); background: var(--surface-2);
  color: var(--text-2); font-size: 11.5px; font-weight: 500; white-space: nowrap;
}
.pf-pill {
  display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 16px;
  border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface);
  color: var(--text); font-size: 14px; font-weight: 500; white-space: nowrap;
  transition: border-color .15s, color .15s, background .15s;
}
.pf-pill .pf-icon { width: 15px; height: 15px; color: var(--text-3); }
.pf-pill:hover { text-decoration: none; border-color: var(--accent); color: var(--accent); }
.pf-pill:hover .pf-icon { color: var(--accent); }

.pf-filter {
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 0 24px; padding: 4px 0;
}
.pf-filter::-webkit-scrollbar { display: none; }
.pf-filter a {
  flex: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 15px;
  border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface);
  color: var(--text-2); font-size: 14px; white-space: nowrap;
}
.pf-filter a .pf-icon { width: 14px; height: 14px; }
.pf-filter a:hover { text-decoration: none; color: var(--accent); border-color: var(--accent); }
.pf-filter a[aria-current="page"] { background: var(--text); border-color: var(--text); color: var(--bg); font-weight: 600; }

/* ---------- app icon ---------- */
.app-icon {
  display: inline-grid; place-items: center; flex: none;
  width: 56px; height: 56px; border-radius: 23%; object-fit: cover;
  background: var(--surface-sunk); box-shadow: var(--icon-shadow);
}
.app-icon-fallback {
  color: #fff; font-family: var(--display); font-weight: 700; font-size: 24px; line-height: 1;
  background: linear-gradient(150deg, #7d8cf0, #4a4fc4);
}

/* ---------- app cards ---------- */
.app-list {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 16px;
  margin: 0; padding: 0; list-style: none;
}
.app-card {
  position: relative; display: flex; gap: 16px; padding: 20px; min-width: 0;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.app-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); border-color: var(--border-strong); }
.app-card-icon { flex: none; }
.app-card-icon:focus-visible { border-radius: 23%; }
.app-card-icon .app-icon { width: 64px; height: 64px; }
.app-card-body { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.app-card-title { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.app-card-title a { color: var(--text); }
.app-card-title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.app-card-title a:hover { text-decoration: none; }
.app-card:hover .app-name { color: var(--accent); }
.app-ver { color: var(--text-3); font-weight: 500; font-size: .86em; font-variant-numeric: tabular-nums; }
.app-card-sub { color: var(--text-2); font-size: 14px; margin: 1px 0 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-card-summary {
  color: var(--text-3); font-size: 13.5px; line-height: 1.6; margin: 6px 0 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.app-card-foot { margin-top: auto; padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.app-card-foot .chip-cat { position: relative; z-index: 1; }
.app-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 12.5px; color: var(--text-3); }
.meta-item { display: inline-flex; align-items: center; gap: 3px; font-variant-numeric: tabular-nums; }
.meta-item svg { width: 13px; height: 13px; }

.app-list.ranked { grid-template-columns: minmax(0, 1fr); gap: 12px; }
.ranked .ranked-item { display: flex; align-items: center; gap: 14px; }
.ranked .ranked-item .app-card { flex: 1; }
.rank, .mini-rank {
  flex: none; width: 34px; text-align: center; font-family: var(--display); font-weight: 800; color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.rank { font-size: 24px; letter-spacing: -.03em; }
.rank.is-top, .mini-rank.is-top { color: var(--orange); }

/* ---------- mini (sidebar) ---------- */
.mini-list { list-style: none; margin: 0; padding: 0; }
.mini-list li { display: flex; align-items: center; gap: 4px; }
.mini-rank { width: 20px; font-size: 14px; }
.app-mini { display: flex; align-items: center; gap: 11px; padding: 8px; border-radius: 12px; min-width: 0; flex: 1; color: var(--text); }
.app-mini:hover { background: var(--surface-sunk); text-decoration: none; color: var(--text); }
.app-mini .app-icon { width: 40px; height: 40px; font-size: 17px; }
.app-mini-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.app-mini-name, .app-mini-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-mini-name { font-size: 14px; font-weight: 600; }
.app-mini-name small { color: var(--text-3); font-weight: 400; }
.app-mini-sub { font-size: 12.5px; color: var(--text-3); }
.app-mini-pf { display: flex; gap: 5px; margin-top: 3px; color: var(--text-3); }
.app-mini-pf .pf-icon { width: 12px; height: 12px; }
.panel-note p { color: var(--text-2); font-size: 14px; }
.panel-note-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- ads ---------- */
.panel-ads { display: flex; flex-direction: column; gap: 10px; }
.ad-card {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
}
.ad-card:hover { text-decoration: none; color: var(--text); border-color: var(--border-strong); }
.ad-card img { width: 48px; height: 48px; object-fit: cover; border-radius: 11px; flex: none; }
.ad-text { display: flex; flex-direction: column; min-width: 0; padding-right: 30px; }
.ad-title { font-weight: 600; font-size: 14px; }
.ad-sub { font-size: 12.5px; color: var(--text-2); }
.ad-label {
  position: absolute; top: 7px; right: 7px; font-size: 10.5px; line-height: 1; padding: 3px 5px;
  border-radius: 4px; background: var(--surface-sunk); color: var(--text-3);
}
.bottom-ads { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; margin-bottom: 24px; }

/* ---------- home hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--hero-wash), var(--surface);
  border-bottom: 1px solid var(--border);
}
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: center; padding-top: 80px; padding-bottom: 80px; }
.hero-title {
  font-size: clamp(36px, 5.2vw, 64px); font-weight: 800; line-height: 1.08; letter-spacing: -.04em;
  max-width: 13em; margin-bottom: 20px; text-wrap: balance;
}
.hero-lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--text-2); line-height: 1.7; max-width: 34em; margin-bottom: 32px; }
.hero-search { position: relative; display: flex; align-items: center; max-width: 640px; margin-bottom: 22px; }
.hero-search .search-icon { left: 20px; width: 20px; height: 20px; margin-top: -10px; }
.hero-search input {
  width: 100%; min-width: 0; height: 60px; padding: 0 116px 0 52px; font: inherit; font-size: 17px; color: var(--text);
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 18px;
  box-shadow: 0 1px 2px rgba(18, 22, 49, .04), 0 18px 40px -18px rgba(31, 44, 140, .28);
  transition: border-color .15s, box-shadow .15s;
}
.hero-search input:focus { outline: none; border-color: var(--accent); box-shadow: var(--focus), 0 18px 40px -18px rgba(31, 44, 140, .3); }
.hero-search .btn { position: absolute; right: 7px; top: 7px; height: 46px; padding: 0 22px; border-radius: 13px; font-size: 15.5px; }
.hero-pf { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; margin: 0; padding: 0; color: var(--text-2); font-size: 14px; }
.hero-facts li { display: inline-flex; align-items: center; gap: 6px; }
.hero-facts svg { width: 15px; height: 15px; color: var(--green); }

.hero-art { position: relative; height: 360px; }
.hero-icon { position: absolute; display: block; filter: drop-shadow(0 18px 24px rgba(31, 44, 140, .2)); }
.hero-icon .app-icon { width: 100%; height: 100%; font-size: 40%; border-radius: 23%; box-shadow: none; }
.hero-icon-0 { width: 132px; height: 132px; left: 110px; top: 110px; z-index: 2; }
.hero-icon-1 { width: 96px; height: 96px; left: 10px; top: 20px; }
.hero-icon-2 { width: 88px; height: 88px; right: 10px; top: 0; }
.hero-icon-3 { width: 80px; height: 80px; left: 0; bottom: 30px; }
.hero-icon-4 { width: 104px; height: 104px; right: 0; bottom: 40px; }
.hero-icon-5 { width: 64px; height: 64px; left: 150px; bottom: 0; }
.hero-icon .app-icon-fallback { font-size: 44px; }
.hero-icon-1 .app-icon-fallback { background: linear-gradient(150deg, #43c3ff, #2557e8); }
.hero-icon-2 .app-icon-fallback { background: linear-gradient(150deg, #ffc65c, #ff7a3c); }
.hero-icon-3 .app-icon-fallback { background: linear-gradient(150deg, #57dba0, #148a5c); }
.hero-icon-4 .app-icon-fallback { background: linear-gradient(150deg, #ff8fb1, #d6366e); }
.hero-icon-5 .app-icon-fallback { background: linear-gradient(150deg, #a98bff, #5a35d0); }
.hero-icon-0 .app-icon-fallback { background: var(--brand-grad); font-size: 56px; }
.hero-icon-1 .app-icon-fallback, .hero-icon-4 .app-icon-fallback { font-size: 40px; }
.hero-icon-2 .app-icon-fallback, .hero-icon-3 .app-icon-fallback { font-size: 34px; }
.hero-icon-5 .app-icon-fallback { font-size: 26px; }

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); padding-top: 56px; padding-bottom: 56px; }
  .hero-art { display: none; }
}
@media (max-width: 640px) {
  .hero-inner { padding-top: 36px; padding-bottom: 40px; }
  .hero-title { margin-bottom: 14px; }
  .hero-lead { margin-bottom: 24px; }
  .hero-search input { height: 54px; padding-left: 44px; padding-right: 88px; font-size: 16px; border-radius: 15px; }
  .hero-search .search-icon { left: 15px; }
  .hero-search .btn { height: 42px; padding: 0 16px; right: 6px; top: 6px; border-radius: 11px; }
  .pf-pill { height: 34px; padding: 0 12px; font-size: 13.5px; }
  .hero-facts { gap: 6px 16px; font-size: 13px; }
}
@media (max-width: 640px) {
  .hot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .hot-tile { padding: 18px 6px 14px; }
  .hot-tile .app-icon { width: 60px; height: 60px; font-size: 26px; margin-bottom: 4px; }
  .hot-name { font-size: 13.5px; }
  .hot-meta { display: none; }
  .section-head h2 { font-size: 22px; }
  .section { margin-bottom: 36px; }
}
.search-page { margin-bottom: 18px; }
.search-page input { height: 54px; font-size: 16px; }

/* home sections */
.site-main > .hero + .wrap { padding-top: 48px; }
.banners { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; margin-bottom: 48px; }
.banner {
  position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); color: var(--text); box-shadow: var(--shadow);
}
.banner:hover { text-decoration: none; color: var(--text); }
.banner img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; display: block; }
.banner-text { display: flex; flex-direction: column; padding: 14px 16px; }
.banner-text strong { font-size: 16px; }
.banner-text span { font-size: 13.5px; color: var(--text-2); }
.banner .ad-label { top: 8px; right: 8px; background: rgba(0, 0, 0, .55); color: #fff; }

.hot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); gap: 16px; }
.hot-tile {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  padding: 28px 14px 22px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--border); color: var(--text); box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.hot-tile:hover { text-decoration: none; color: var(--text); transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.hot-tile .app-icon { width: 80px; height: 80px; font-size: 32px; margin-bottom: 8px; }
.hot-name { font-weight: 700; font-size: 15px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hot-meta { font-size: 12.5px; color: var(--text-3); }

/* ---------- AI band (home) & AI hero ---------- */
.ai-band, .ai-hero {
  position: relative; color: #e8eaff;
  background:
    radial-gradient(900px 400px at 90% 0%, rgba(98, 92, 255, .38), transparent 65%),
    radial-gradient(700px 380px at 0% 100%, rgba(255, 170, 60, .14), transparent 60%),
    linear-gradient(160deg, var(--night-2), var(--night) 70%);
}
.ai-band { padding: 72px 0; margin: 0 0 56px; }
.ai-band h2, .ai-hero h1, .ai-hero h2 { color: #fff; }
.ai-band a:not(.btn), .ai-hero a:not(.btn) { color: #c9ceff; }
.ai-band-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; margin-bottom: 36px; }
.ai-band-head h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; letter-spacing: -.03em; max-width: 18em; margin-bottom: 12px; }
.ai-band-lead { color: rgba(232, 234, 255, .78); font-size: 16px; max-width: 40em; margin: 0; }
.ai-band-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.ai-band-cta .btn { height: 46px; padding: 0 22px; font-size: 15px; }
.ai-empty { color: rgba(232, 234, 255, .78); margin: 0; }

.rp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 18px; margin-bottom: 8px; }
.rp-card {
  position: relative; display: flex; flex-direction: column; gap: 8px; padding: 22px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease;
}
.rp-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.rp-card-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.rp-status {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; background: rgba(255, 178, 63, .16); color: #a35a00;
}
.rp-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.rp-status-queued, .rp-status-building { background: var(--accent-soft); color: var(--accent); }
.rp-status-released { background: var(--green-soft); color: var(--green); }
:root[data-theme="dark"] .rp-status-voting { color: var(--amber); }
.rp-card-title { font-size: 18px; font-weight: 700; margin-top: 6px; }
.rp-card-title a { color: var(--text); }
.rp-card-title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-lg); }
.rp-card-title a:hover { text-decoration: none; color: var(--accent); }
.rp-origin { color: var(--text-3); font-size: 14px; margin: 0 0 6px; }
.rp-origin strong { color: var(--text-2); font-weight: 600; }
.rp-meter { height: 10px; border-radius: 999px; background: var(--surface-sunk); overflow: hidden; }
.rp-meter > span { display: block; height: 100%; border-radius: inherit; background: var(--amber-grad); min-width: 10px; }
.rp-count { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; color: var(--text-3); margin: 0; font-variant-numeric: tabular-nums; }
.rp-count strong { color: var(--text); font-size: 17px; font-weight: 800; }
.rp-left { color: var(--text-2); }
.rp-quick { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 8px 0 0; }
.rp-more { font-size: 13.5px; color: var(--text-3); }

.rp-card-dark { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); box-shadow: none; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.rp-card-dark:hover { background: rgba(255, 255, 255, .09); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .5); }
.rp-card-dark .rp-card-title a, .ai-hero .rp-card-title a { color: #fff; }
.rp-card-dark .rp-origin { color: rgba(232, 234, 255, .65); }
.rp-card-dark .rp-origin strong, .rp-card-dark .rp-left { color: rgba(232, 234, 255, .9); }
.rp-card-dark .rp-count { color: rgba(232, 234, 255, .65); }
.rp-card-dark .rp-count strong { color: #fff; }
.rp-card-dark .rp-meter, .ai-hero .rp-meter { background: rgba(255, 255, 255, .12); }
.rp-card-dark .rp-status-voting, .ai-hero .rp-status-voting { background: rgba(255, 178, 63, .18); color: var(--amber); }
.rp-card-dark .rp-status-queued, .rp-card-dark .rp-status-building, .ai-hero .rp-status-queued, .ai-hero .rp-status-building { background: rgba(139, 152, 255, .2); color: #c4cbff; }
.ai-hero .rp-status-released { background: rgba(92, 211, 150, .18); color: #7fe3b0; }
.rp-card-dark .pf, .ai-hero .pf { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: rgba(232, 234, 255, .85); }

/* AI page hero */
.ai-hero { padding: 64px 0 56px; margin-bottom: 40px; }
.ai-hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: start; }
.ai-hero h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 800; letter-spacing: -.04em; line-height: 1.1; margin-bottom: 16px; }
.ai-hero-lead { font-size: clamp(16px, 1.6vw, 18px); color: rgba(232, 234, 255, .8); max-width: 36em; line-height: 1.75; margin-bottom: 32px; }
.ai-steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 12px; margin: 0; padding: 0; }
.ai-steps li {
  counter-increment: step; position: relative; display: flex; flex-direction: column; gap: 4px;
  padding: 16px 16px 16px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1);
}
.ai-steps li::before {
  content: counter(step); display: grid; place-items: center; width: 26px; height: 26px; margin-bottom: 6px;
  border-radius: 50%; background: var(--amber-grad); color: #2a1600; font-weight: 800; font-size: 13px;
}
.ai-steps strong { color: #fff; font-size: 15.5px; }
.ai-steps span { color: rgba(232, 234, 255, .68); font-size: 13.5px; line-height: 1.55; }

.wallet {
  padding: 24px; border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.wallet h2 { font-size: 16px; font-weight: 600; color: rgba(232, 234, 255, .85); margin-bottom: 6px; }
.wallet-big { display: flex; align-items: baseline; gap: 8px; margin: 0 0 8px; }
.wallet-big span { font-family: var(--display); font-size: 64px; font-weight: 800; line-height: 1; letter-spacing: -.04em; color: var(--amber); font-variant-numeric: tabular-nums; }
.wallet-big small { font-size: 15px; color: rgba(232, 234, 255, .8); }
.wallet-detail { font-size: 13.5px; color: rgba(232, 234, 255, .72); line-height: 1.65; margin-bottom: 16px; }
.wallet-detail strong { color: var(--amber); font-size: 15px; }
.wallet-foot { font-size: 12.5px; color: rgba(232, 234, 255, .55); margin: 10px 0 0; }

@media (max-width: 960px) {
  .ai-hero-inner { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 640px) {
  .ai-band { padding: 48px 0; margin-bottom: 40px; }
  .ai-hero { padding: 40px 0 36px; margin-bottom: 28px; }
  .wallet { padding: 20px; }
  .wallet-big span { font-size: 52px; }
}

/* AI detail */
.ai-hero-detail { padding-top: 28px; }
.crumbs-dark, .crumbs-dark a { color: rgba(232, 234, 255, .6) !important; }
.rd-hero { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: start; }
.rd-title { font-size: clamp(30px, 4.4vw, 48px); font-weight: 800; letter-spacing: -.035em; line-height: 1.12; margin: 14px 0 10px; }
.rd-origin { font-size: 17px; color: rgba(232, 234, 255, .75); margin-bottom: 32px; }
.rd-origin strong { color: #fff; }
.rd-progress { max-width: 640px; }
.rd-votes { display: flex; align-items: baseline; gap: 10px; margin: 0 0 14px; font-variant-numeric: tabular-nums; }
.rd-votes strong { font-family: var(--display); font-size: clamp(56px, 8vw, 88px); font-weight: 800; line-height: .9; letter-spacing: -.05em; color: #fff; }
.rd-votes span { font-size: 20px; color: rgba(232, 234, 255, .7); }
.rp-meter-big { height: 16px; }
.rp-meter-big > span { box-shadow: 0 0 24px rgba(255, 170, 60, .55); }
.rd-progress-note { margin: 14px 0 0; color: rgba(232, 234, 255, .8); font-size: 15px; }
.rd-progress-note strong { color: var(--amber); }
.vote-form { display: flex; gap: 8px; margin-bottom: 10px; }
.vote-count {
  width: 88px; flex: none; height: 48px; padding: 0 12px; font: inherit; font-size: 18px; font-weight: 700; text-align: center;
  color: #fff; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .25); border-radius: 14px;
}
.vote-count:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(255, 178, 63, .35); }
.vote-count:disabled { opacity: .45; }
.vote-form .btn { flex: 1; }
.vote-hint { font-size: 13px; color: var(--amber); margin: 0 0 12px; }
.rd-desc { white-space: pre-wrap; font-size: 15.5px; line-height: 1.8; }
.rd-meta { color: var(--text-3); font-size: 13px; margin: 0; }
.rd-links .app-actions { margin-top: 0; }

.stages { list-style: none; margin: 0; padding: 0; position: relative; }
.stages li { position: relative; padding: 0 0 18px 30px; display: flex; flex-direction: column; }
.stages li:last-child { padding-bottom: 0; }
.stages li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid var(--border-strong); background: var(--surface);
}
.stages li::after { content: ""; position: absolute; left: 7px; top: 22px; bottom: 2px; width: 2px; background: var(--border); }
.stages li:last-child::after { display: none; }
.stages strong { font-size: 14.5px; color: var(--text-3); }
.stages span { font-size: 13px; color: var(--text-3); }
.stages .is-done::before { background: var(--green); border-color: var(--green); }
.stages .is-done::after { background: var(--green); }
.stages .is-done strong { color: var(--text); }
.stages .is-current::before { background: var(--amber); border-color: var(--amber); box-shadow: 0 0 0 4px rgba(255, 178, 63, .22); }
.stages .is-current strong { color: var(--text); }
.stages .is-current span { color: var(--text-2); }

@media (max-width: 960px) {
  .rd-hero { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

/* proposal form */
.propose {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 48px; align-items: start;
  margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--border);
}
.propose-intro h2 { font-size: 30px; font-weight: 800; letter-spacing: -.03em; margin-bottom: 12px; }
.propose-intro > p { color: var(--text-2); font-size: 16px; max-width: 30em; }
.cleanroom { margin-top: 24px; padding: 18px 20px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--border); border-left: 3px solid var(--accent); }
.cleanroom h3 { font-size: 15px; margin-bottom: 6px; }
.cleanroom p { font-size: 14px; color: var(--text-2); margin: 0; }
.propose-form { padding: 28px; }
.pf-check { border: 0; margin: 0; padding: 0; min-width: 0; }
.pf-check legend { padding: 0; margin-bottom: 6px; font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.pf-check-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-check-item {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 13px 0 10px; cursor: pointer;
  border: 1px solid var(--border-strong); border-radius: 11px; background: var(--surface-2); font-size: 14px; font-weight: 500 !important; color: var(--text) !important;
}
.pf-check-item input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }
.pf-check-item:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.pf-check-item:has(input:focus-visible) { box-shadow: var(--focus); }
@media (max-width: 860px) {
  .propose { grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 48px; padding-top: 36px; }
  .propose-form { padding: 20px; }
}

/* home side lists */
.deal-mini-list, .article-mini-list { list-style: none; margin: 0; padding: 0; }
.deal-mini { display: flex; align-items: center; gap: 11px; padding: 8px; border-radius: 12px; color: var(--text); }
.deal-mini:hover { background: var(--surface-sunk); text-decoration: none; color: var(--text); }
.deal-mini .app-icon { width: 40px; height: 40px; font-size: 17px; }
.deal-mini-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.deal-mini-name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.price-row { font-variant-numeric: tabular-nums; font-size: 13px; }
.price-now { color: var(--green); font-weight: 700; }
.price-was { color: var(--text-3); margin-left: 4px; }
.article-mini-list li + li { border-top: 1px solid var(--border); }
.article-mini-list a { display: flex; gap: 10px; justify-content: space-between; padding: 10px 2px; color: var(--text); font-size: 14px; }
.article-mini-list a:hover { color: var(--accent); text-decoration: none; }
.article-mini-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.article-mini-list time { flex: none; color: var(--text-3); font-size: 12.5px; font-variant-numeric: tabular-nums; }

/* ---------- pager ---------- */
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin: 32px 0 8px; }
.pager-nums { display: flex; flex-wrap: wrap; gap: 4px; }
.pager a, .pager span.pager-num, .pager-step, .pager-gap {
  display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 12px;
  border-radius: 11px; font-size: 14px; font-variant-numeric: tabular-nums;
}
.pager a { background: var(--surface); border: 1px solid var(--border); color: var(--text); }
.pager a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.pager .is-current { background: var(--text); color: var(--bg); font-weight: 700; }
.pager .is-disabled { color: var(--text-3); opacity: .55; }
.pager-gap { color: var(--text-3); min-width: 20px; padding: 0; }

/* ---------- empty / alerts ---------- */
.empty {
  padding: 48px 24px; text-align: center; color: var(--text-2);
  background: var(--surface); border: 1px dashed var(--border-strong); border-radius: var(--radius);
}
.empty p:last-child { margin-bottom: 0; }
.alert { padding: 12px 16px; border-radius: 12px; margin: 0 0 20px; font-size: 14.5px; }
.alert-ok { background: var(--green-soft); color: var(--green); }
.alert-error { background: var(--red-soft); color: var(--red); }

/* ---------- app detail ---------- */
.detail-hero { background: var(--hero-wash), var(--surface); border-bottom: 1px solid var(--border); padding: 28px 0 40px; margin-bottom: 36px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13.5px; color: var(--text-3); margin-bottom: 24px; }
.crumbs a { color: var(--text-3); }
.crumbs a:hover { color: var(--accent); }
.app-hero { display: flex; gap: 32px; align-items: center; }
.app-hero-icon .app-icon { width: 144px; height: 144px; font-size: 60px; box-shadow: 0 2px 4px rgba(18, 22, 49, .08), 0 24px 40px -16px rgba(31, 44, 140, .35); }
.app-hero-main { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.app-title { font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; letter-spacing: -.035em; line-height: 1.1; }
.app-title .app-ver { font-size: .5em; font-weight: 600; letter-spacing: 0; vertical-align: .3em; }
.app-subtitle { font-size: 18px; color: var(--text-2); margin: 0; }
.app-hero-main .pf { height: 26px; padding: 0 9px 0 8px; font-size: 12.5px; }
.app-hero-main .pf .pf-icon { width: 14px; height: 14px; }
.app-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.replica-callout {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 28px; padding: 14px 18px;
  border-radius: var(--radius); color: #e8eaff;
  background: radial-gradient(500px 120px at 100% 0%, rgba(98, 92, 255, .4), transparent 70%), linear-gradient(160deg, var(--night-2), var(--night));
}
.replica-callout:hover { text-decoration: none; color: #fff; }
.replica-callout-badge { flex: none; padding: 3px 10px; border-radius: 999px; background: var(--amber-grad); color: #2a1600; font-size: 12.5px; font-weight: 700; }
.replica-callout-text { font-size: 14px; min-width: 0; flex: 1 1 260px; }
.replica-callout-text strong { color: #fff; }

.info-grid {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0 0 22px; padding: 0 0 20px;
  border-bottom: 1px solid var(--border);
}
.info-grid > div { padding: 0 14px; border-left: 1px solid var(--border); min-width: 0; }
.info-grid > div:first-child { border-left: 0; padding-left: 0; }
.info-grid dt { font-size: 12.5px; color: var(--text-3); margin-bottom: 3px; }
.info-grid dd { margin: 0; font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.shots { margin: 0 -28px 24px; }
.shots-strip {
  display: flex; gap: 14px; overflow-x: auto; padding: 4px 28px 12px;
  scroll-snap-type: x proximity; scroll-padding: 28px;
}
.shot { flex: none; scroll-snap-align: start; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: var(--surface-sunk); }
.shot img { display: block; height: 300px; width: auto; max-width: none; }

/* downloads */
.pf-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.pf-jump .pf-pill { height: 34px; padding: 0 14px; font-size: 13.5px; }
.dl-group { scroll-margin-top: 90px; }
.dl-group + .dl-group { margin-top: 24px; }
.dl-group-head { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.dl-group-head .pf-icon { width: 17px; height: 17px; color: var(--accent); }
.ver-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.ver { padding: 16px 18px; }
.ver + .ver { border-top: 1px solid var(--border); }
.ver.is-latest { background: var(--accent-soft); }
.ver-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-bottom: 6px; }
.ver-name { font-size: 16px; }
.ver-date { margin-left: auto; color: var(--text-3); font-size: 13px; font-variant-numeric: tabular-nums; }
.ver-specs { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0 0 12px; font-size: 13px; }
.ver-specs div { display: flex; gap: 6px; min-width: 0; }
.ver-specs dt { color: var(--text-3); }
.ver-specs dd { margin: 0; color: var(--text-2); }
.ver-links { display: flex; flex-wrap: wrap; gap: 8px; }
.dl-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 6px 15px; border-radius: 11px;
  background: var(--accent); color: var(--accent-text); font-weight: 600; font-size: 14px;
}
.dl-btn:hover { background: var(--accent-hover); color: var(--accent-text); text-decoration: none; }
.dl-btn svg { width: 15px; height: 15px; }
.dl-btn small { font-weight: 400; opacity: .8; font-size: 12px; }
.ver:not(.is-latest) .dl-btn { background: var(--surface); color: var(--accent); border: 1px solid var(--border-strong); }
.ver:not(.is-latest) .dl-btn:hover { border-color: var(--accent); }
.ver-log { margin-top: 10px; }
details summary { cursor: pointer; color: var(--text-2); font-size: 13.5px; padding: 2px 0; }
details summary:hover { color: var(--accent); }
details[open] summary { margin-bottom: 6px; }

.install-tip {
  margin-top: 28px; padding: 20px 22px; border-radius: var(--radius);
  background: var(--surface-2); border: 1px solid var(--border); font-size: 14px; color: var(--text-2);
}
.install-tip h3 { font-size: 16px; color: var(--text); margin-bottom: 6px; }
.install-tip > p { margin: 0 0 12px; }
.install-tip b { color: var(--text); font-weight: 600; }
.install-tip code { font-family: var(--mono); font-size: .9em; background: var(--surface-sunk); padding: .1em .35em; border-radius: 5px; }
.tip-list { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.tip-item { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.tip-item dt { display: flex; align-items: center; gap: 6px; align-self: start; font-weight: 600; color: var(--text); }
.tip-item dd { margin: 0; line-height: 1.7; }

@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .card { padding: 20px 16px; }
  .detail-hero { padding: 20px 0 28px; margin-bottom: 24px; }
  .shots { margin-left: -16px; margin-right: -16px; }
  .shots-strip { padding-left: 16px; padding-right: 16px; }
  .shot img { height: 200px; }
  .app-hero { gap: 18px; align-items: flex-start; }
  .app-hero-icon .app-icon { width: 84px; height: 84px; font-size: 36px; }
  .app-subtitle { font-size: 16px; }
  .info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 0; }
  .info-grid > div { border-left: 0; padding-left: 0; }
  .ver { padding: 14px; }
  .tip-item { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .btn-large { height: 44px; padding: 0 18px; font-size: 15px; }
}

/* prose (markdown) */
.prose { font-size: 16px; line-height: 1.85; }
.prose > :first-child { margin-top: 0; }
.prose h1, .prose h2, .prose h3, .prose h4 { margin: 1.5em 0 .5em; line-height: 1.35; }
.prose h1 { font-size: 24px; } .prose h2 { font-size: 21px; } .prose h3 { font-size: 18px; } .prose h4 { font-size: 16px; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose pre, .prose table { margin: 0 0 1em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .25em; }
.prose img { border-radius: 12px; display: block; margin: 1em auto; }
.prose code { font-family: var(--mono); font-size: .88em; background: var(--surface-sunk); padding: .1em .35em; border-radius: 5px; }
.prose pre { background: var(--surface-sunk); padding: 14px 16px; border-radius: 12px; overflow-x: auto; line-height: 1.55; }
.prose pre code { background: none; padding: 0; font-size: 13.5px; }
.prose blockquote { border-left: 3px solid var(--accent); padding: 2px 0 2px 14px; color: var(--text-2); }
.prose table { border-collapse: collapse; display: block; overflow-x: auto; max-width: 100%; }
.prose th, .prose td { border: 1px solid var(--border); padding: 6px 10px; text-align: left; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 1.6em 0; }
.prose-small { font-size: 14px; line-height: 1.7; }

/* ---------- articles ---------- */
.article-list { display: flex; flex-direction: column; gap: 16px; }
.article-card {
  display: flex; gap: 20px; padding: 18px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.article-cover { flex: none; width: 220px; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: var(--surface-sunk); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-card-body { min-width: 0; }
.article-card h2 { font-size: 19px; margin-bottom: 6px; }
.article-card h2 a { color: var(--text); }
.article-card h2 a:hover { color: var(--accent); text-decoration: none; }
.article-card p { color: var(--text-2); font-size: 14.5px; }
.article-card time { font-size: 13px; color: var(--text-3); }
@media (max-width: 600px) {
  .article-card { flex-direction: column; gap: 12px; }
  .article-cover { width: 100%; }
}
.article { max-width: 100%; }
.article-title { font-size: clamp(26px, 3.6vw, 36px); font-weight: 800; letter-spacing: -.03em; margin-bottom: 10px; }
.article-meta { color: var(--text-3); font-size: 13.5px; margin-bottom: 22px; }
.article-hero { display: block; width: 100%; border-radius: 14px; margin-bottom: 24px; }

/* ---------- deals ---------- */
.deal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 18px; }
.deal-card {
  display: flex; flex-direction: column; gap: 10px; padding: 22px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.deal-head { display: flex; gap: 14px; align-items: center; }
.deal-head .app-icon { width: 64px; height: 64px; }
.deal-name { font-size: 17px; margin-bottom: 4px; }
.deal-summary {
  color: var(--text-2); font-size: 14px; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.deal-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 6px; }
.deal-foot .price-row { font-size: 16px; }

/* ---------- tabs / wishlist / feedback ---------- */
.tabs { display: inline-flex; gap: 2px; padding: 4px; margin-bottom: 20px; background: var(--surface-sunk); border-radius: 12px; max-width: 100%; overflow-x: auto; }
.tabs a { flex: none; padding: 7px 18px; border-radius: 9px; color: var(--text-2); font-size: 14.5px; white-space: nowrap; }
.tabs a:hover { text-decoration: none; color: var(--text); }
.tabs a[aria-current="page"] { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: var(--shadow-sm), 0 0 0 1px var(--border); }

.wish-list, .feedback-list { list-style: none; margin: 0; padding: 0; }
.wish-list {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.wish { display: flex; gap: 16px; align-items: flex-start; padding: 16px 18px; }
.wish + .wish { border-top: 1px solid var(--border); }
.wish-votes {
  flex: none; width: 56px; padding: 7px 0; text-align: center; border-radius: 12px; background: var(--surface-sunk);
  display: flex; flex-direction: column; line-height: 1.2;
}
.wish-votes strong { font-size: 19px; font-variant-numeric: tabular-nums; }
.wish-votes small { font-size: 11px; color: var(--text-3); }
.wish-body { flex: 1; min-width: 0; }
.wish-name { font-size: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-bottom: 2px; }
.wish-note { color: var(--text-2); font-size: 14px; margin-bottom: 4px; }
.wish-meta { font-size: 12.5px; color: var(--text-3); margin: 0; }
.wish-action { flex: none; align-self: center; }
.wish-action form { margin: 0; }
@media (max-width: 480px) {
  .wish { flex-wrap: wrap; }
  .wish-action { width: 100%; padding-left: 72px; }
}

.feedback { display: flex; flex-direction: column; gap: 8px; padding: 0 0 18px; }
.feedback + .feedback { border-top: 1px solid var(--border); padding-top: 18px; }
.bubble { max-width: 88%; padding: 11px 15px; border-radius: 16px; font-size: 14.5px; }
.bubble-text { margin: 0; white-space: pre-wrap; }
.bubble-user { align-self: flex-start; background: var(--surface); border: 1px solid var(--border); border-bottom-left-radius: 6px; }
.bubble-reply { align-self: flex-end; background: var(--accent-soft); border-bottom-right-radius: 6px; }
.bubble-meta { display: block; margin-top: 4px; font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.bubble-who { display: block; font-size: 12px; font-weight: 600; color: var(--accent); margin-bottom: 2px; }

/* forms */
.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.req { color: var(--red); }
.field input:not([type="checkbox"]), .field textarea {
  width: 100%; padding: 10px 12px; font: inherit; font-size: 14.5px; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: 11px;
  transition: border-color .15s, background .15s;
}
.field textarea { resize: vertical; min-height: 96px; line-height: 1.6; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: var(--surface); box-shadow: var(--focus); }
.form-hint { font-size: 13px; color: var(--text-3); margin: 0; }
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* old-style compact search (404 page) */
.search-big { margin: 0 0 20px; flex: none; max-width: 560px; gap: 8px; }
.search-big input { height: 46px; padding-left: 16px; font-size: 15px; background: var(--surface); border-color: var(--border-strong); }
.search-big .btn { height: 46px; }

/* 404 */
.not-found { text-align: center; padding: 56px 24px; max-width: 640px; margin: 24px auto; }
.nf-code {
  font-family: var(--display); font-size: 104px; font-weight: 800; line-height: 1; letter-spacing: -.05em; margin-bottom: 10px;
  background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.not-found h1 { font-size: 26px; margin-bottom: 8px; }
.not-found p { color: var(--text-2); }
.not-found .search-big { margin: 24px auto; }
.nf-links { font-size: 14px; }

/* ---------- topics: 免费替代 / 装机清单 ---------- */
.section-lead { color: var(--text-3); font-size: 14.5px; margin: 6px 0 0; }
.tp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 18px; }
.tp-grid-coll { grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); }
.tp-card {
  position: relative; display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 24px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.tp-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); border-color: var(--border-strong); }
.tp-card-alt { background: radial-gradient(420px 160px at 100% 0%, rgba(76, 84, 240, .08), transparent 70%), var(--surface); }
.tp-card-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; min-height: 22px; }
.tp-paid-badge, .tp-free-badge {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px;
  font-size: 12px; font-weight: 700; flex: none;
}
.tp-paid-badge { background: var(--red-soft); color: var(--red); }
.tp-free-badge { background: var(--green-soft); color: var(--green); }
.tp-price { color: var(--text-3); font-size: 12.5px; text-decoration-color: currentColor; }
.tp-subject {
  display: flex; align-items: baseline; gap: 10px; margin: 10px 0 2px; min-width: 0;
  font-family: var(--display); font-size: clamp(26px, 2.6vw, 32px); font-weight: 800; line-height: 1.15; letter-spacing: -.035em;
}
.tp-subject-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-arrow { flex: none; color: var(--accent); transition: transform .18s ease; }
.tp-card:hover .tp-arrow { transform: translateX(4px); }
.tp-card-title { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.tp-card-title a { color: var(--text); }
.tp-card-title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-lg); }
.tp-card-title a:hover { text-decoration: none; }
.tp-card:hover .tp-card-title a { color: var(--accent); }
.tp-card-alt .tp-card-title { color: var(--text-2); font-weight: 600; font-size: 15px; }
.tp-card-sub { color: var(--text-3); font-size: 13.5px; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tp-card-foot { margin-top: auto; padding-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tp-count { color: var(--text-3); font-size: 13.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tp-count strong { color: var(--green); font-size: 17px; font-weight: 800; margin-right: 1px; }
.tp-go { color: var(--text-3); font-size: 13.5px; white-space: nowrap; }
.tp-card:hover .tp-go { color: var(--accent); }
.tp-stack { display: inline-flex; align-items: center; padding-left: 8px; }
.tp-stack .app-icon { width: 38px; height: 38px; font-size: 16px; margin-left: -8px; border: 2px solid var(--surface); box-shadow: var(--shadow-sm); }

.tp-coll-art { display: flex; align-items: center; padding-left: 12px; margin-bottom: 14px; min-height: 64px; }
.tp-coll-art .app-icon { width: 60px; height: 60px; font-size: 26px; margin-left: -12px; border: 3px solid var(--surface); box-shadow: 0 6px 16px -6px rgba(31, 44, 140, .35); }
.tp-coll-art .app-icon:nth-child(2) { transform: translateY(-6px); }
.tp-coll-art .app-icon:nth-child(4) { transform: translateY(-4px); }
.tp-card-coll .tp-card-title { font-size: 18px; }

/* topic heroes */
.tp-hero { background: var(--hero-wash), var(--surface); border-bottom: 1px solid var(--border); padding: 28px 0 40px; margin-bottom: 36px; }
.tp-eyebrow { color: var(--accent); font-size: 14px; font-weight: 600; margin: 0 0 8px; letter-spacing: .02em; }
.tp-h1 { font-size: clamp(32px, 4.8vw, 52px); font-weight: 800; letter-spacing: -.04em; line-height: 1.1; margin-bottom: 14px; text-wrap: balance; max-width: 22em; }
.tp-lead { color: var(--text-2); font-size: clamp(16px, 1.6vw, 18px); max-width: 40em; margin: 0 0 24px; }
.tp-switch { margin: 4px 0 0; }
.tp-facts { margin-top: 4px; }

.tp-compare { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.3fr); align-items: stretch; gap: 14px; max-width: 900px; margin-top: 8px; }
.tp-side { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 20px 22px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-sm); min-width: 0; }
.tp-side-name { font-family: var(--display); font-size: 21px; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; }
.tp-side-note { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; color: var(--text-3); font-size: 14px; }
.tp-side-paid .tp-side-name { color: var(--text-2); }
.tp-side-free { border-color: color-mix(in srgb, var(--green) 30%, var(--border)); background: linear-gradient(160deg, var(--green-soft), transparent 70%), var(--surface); }
.tp-vs { align-self: center; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--brand-grad); color: #fff; font-size: 20px; font-weight: 800; box-shadow: 0 8px 18px -6px rgba(47, 69, 216, .55); }

/* topic detail items */
.tp-intro { font-size: 16px; }
.tp-items { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-direction: column; gap: 16px; counter-reset: none; }
.tp-item {
  display: flex; gap: 18px; padding: 24px; scroll-margin-top: 90px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.tp-rank {
  flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px;
  background: var(--surface-sunk); color: var(--text-2); font-family: var(--display); font-size: 21px; font-weight: 800; font-variant-numeric: tabular-nums;
}
.tp-rank.is-top { background: var(--brand-grad); color: #fff; box-shadow: 0 6px 14px -6px rgba(47, 69, 216, .6); }
.tp-item-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.tp-item-head { display: flex; gap: 16px; align-items: flex-start; }
.tp-item-icon { flex: none; }
.tp-item-icon .app-icon { width: 72px; height: 72px; font-size: 30px; }
.tp-item-info { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.tp-item-title { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.tp-item-title a { color: var(--text); }
.tp-item-title a:hover { color: var(--accent); text-decoration: none; }
.tp-item-title .app-ver { font-size: .62em; vertical-align: .15em; }
.tp-item-sub { color: var(--text-2); font-size: 15px; margin: 0; }
.tp-item-info .app-meta { margin-top: 4px; }
.tp-note {
  position: relative; padding: 14px 16px 14px 18px; border-radius: 14px;
  background: var(--accent-soft); border-left: 3px solid var(--accent);
}
.tp-note-label { display: inline-block; font-size: 12.5px; font-weight: 700; color: var(--accent); margin-bottom: 2px; letter-spacing: .04em; }
.tp-note p { margin: 0; font-size: 15.5px; line-height: 1.75; color: var(--text); }
.tp-item-summary { color: var(--text-2); font-size: 14.5px; margin: 0; }
.tp-item-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.tp-share {
  display: flex; align-items: center; gap: 16px; padding: 20px 22px; margin-bottom: 40px;
  border-radius: var(--radius); border: 1px dashed var(--border-strong); background: var(--surface-2);
}
.tp-share > svg { flex: none; width: 36px; height: 36px; padding: 8px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.tp-share strong { display: block; font-size: 16px; margin-bottom: 2px; }
.tp-share p { margin: 0; color: var(--text-2); font-size: 14px; }

.tp-related-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.tp-related-list a {
  display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 14px 16px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
}
.tp-related-list a:hover { text-decoration: none; border-color: var(--accent); }
.tp-related-title { font-weight: 700; font-size: 15px; }
.tp-related-list a:hover .tp-related-title { color: var(--accent); }
.tp-related-meta { color: var(--text-3); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.tp-cta {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 32px;
  margin-top: 48px; padding: 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border);
}
.tp-cta h2 { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.tp-cta p { margin: 0; color: var(--text-2); font-size: 14.5px; max-width: 40em; }
.tp-cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* app detail: alternative / list links */
.tp-links { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.tp-altfor, .tp-inlists { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0; font-size: 14.5px; }
.tp-altfor {
  align-self: flex-start; padding: 10px 16px 10px 10px; border-radius: 14px;
  background: var(--green-soft); border: 1px solid color-mix(in srgb, var(--green) 22%, transparent);
}
.tp-altfor-label { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; background: var(--green); color: #fff; font-size: 13px; font-weight: 700; }
:root[data-theme="dark"] .tp-altfor-label { color: #06210f; }
.tp-altfor-label svg { width: 14px; height: 14px; }
.tp-altfor-list a { color: var(--text); font-weight: 700; }
.tp-altfor-list a:hover { color: var(--green); }
.tp-sep { color: var(--text-3); }
.tp-inlists-label { color: var(--text-3); font-size: 13.5px; }
.tp-inlists .chip { height: 28px; padding: 0 11px; background: var(--surface); border: 1px solid var(--border-strong); color: var(--text-2); }
.tp-inlists .chip:hover { border-color: var(--accent); color: var(--accent); }

@media (max-width: 720px) {
  .tp-hero { padding: 20px 0 28px; margin-bottom: 24px; }
  .tp-card { padding: 20px; }
  .tp-compare { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .tp-vs { justify-self: center; width: 36px; height: 36px; font-size: 17px; transform: rotate(90deg); }
  .tp-side { padding: 16px 18px; }
  .tp-item { flex-direction: column; gap: 12px; padding: 18px 16px; }
  .tp-rank { width: 34px; height: 34px; font-size: 17px; border-radius: 11px; }
  .tp-item-icon .app-icon { width: 60px; height: 60px; font-size: 26px; }
  .tp-item-title { font-size: 19px; }
  .tp-item-actions .btn { flex: 1 1 0; }
  .tp-cta { padding: 20px; }
  .tp-share { align-items: flex-start; }
}

/* AI 复刻: daily check-in & vote rules */
.checkin { margin: 0 0 10px; }
.checkin-btn { height: 46px; font-size: 15.5px; }
.checkin-done {
  display: flex; align-items: center; justify-content: center; gap: 6px; height: 46px; padding: 0 14px;
  border-radius: 12px; background: rgba(92, 211, 150, .14); border: 1px solid rgba(92, 211, 150, .35);
  color: #9cf0c4; font-size: 14.5px; font-weight: 600;
}
.checkin-done svg { width: 16px; height: 16px; }
.checkin-done strong { color: #fff; font-size: 16px; }
.vote-rules { list-style: none; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; flex-direction: column; gap: 7px; }
.vote-rules li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-size: 13px; color: rgba(232, 234, 255, .72); }
.vote-rules strong { margin-left: auto; color: var(--amber); font-weight: 700; }
.vote-rules small { flex-basis: 100%; text-align: right; font-size: 11.5px; color: rgba(232, 234, 255, .5); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); color: var(--text-3); font-size: 13.5px; padding: 48px 0 36px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px 48px; margin-bottom: 32px; }
.footer-brand { max-width: 340px; }
.footer-brand .brand { margin-bottom: 10px; }
.footer-brand p { margin: 0; color: var(--text-2); }
.footer-cols { display: flex; flex-wrap: wrap; gap: 24px 64px; }
.footer-cols div { display: flex; flex-direction: column; gap: 8px; min-width: 96px; }
.footer-cols h2 { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.footer-cols a { color: var(--text-2); }
.footer-cols a:hover { color: var(--accent); }
.site-footer .disclaimer { max-width: 860px; line-height: 1.75; padding-top: 24px; border-top: 1px solid var(--border); }
.copyright { margin: 0; }

/* ---------- reward modal & toast (reward.js) ---------- */
.rw-backdrop {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px;
  background: rgba(8, 10, 31, .66); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.rw-dialog {
  position: relative; width: min(100%, 440px); max-height: calc(100vh - 32px); overflow-y: auto;
  background: var(--surface); color: var(--text); border-radius: var(--radius-lg); padding: 24px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5);
}
.rw-dialog:focus { outline: none; }
.rw-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.rw-head h2 { font-size: 17px; }
.rw-close {
  flex: none; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2);
  color: var(--text-2); font-size: 20px; line-height: 1; cursor: pointer;
}
.rw-close:hover { color: var(--text); }
.rw-ad { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface-2); margin-bottom: 18px; }
.rw-ad img { display: block; width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.rw-ad-body { padding: 14px 16px; }
.rw-ad-label { display: inline-block; font-size: 11px; padding: 2px 6px; border-radius: 4px; background: var(--surface-sunk); color: var(--text-3); margin-bottom: 6px; }
.rw-title { font-size: 17px; font-weight: 700; margin: 0 0 4px; }
.rw-sub { font-size: 14px; color: var(--text-2); margin: 0 0 10px; }
.rw-link { font-size: 14px; font-weight: 600; }
.rw-timer { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-size: 14px; color: var(--text-2); }
.rw-timer-bar { flex: 1; height: 8px; border-radius: 999px; background: var(--surface-sunk); overflow: hidden; }
.rw-timer-bar span { display: block; height: 100%; width: 0; background: var(--amber-grad); transition: width .25s linear; }
.rw-count { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--text); min-width: 3.5em; text-align: right; }
.rw-msg { font-size: 14px; color: var(--red); margin: 0 0 12px; }
.rw-msg:empty { display: none; }
.rw-dialog .btn-vote { width: 100%; height: 46px; font-size: 15.5px; }
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 110; transform: translateX(-50%);
  max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 12px;
  background: var(--night); color: #fff; font-size: 14.5px; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .5);
}
.toast.is-error { background: var(--red); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
  .app-card:hover, .hot-tile:hover, .rp-card:hover { transform: none; }
}
