:root {
  --bg: #0F1117;
  --bg-2: #0c0e14;
  --surface: #161B27;
  --surface-2: #1b212f;
  --surface-3: #20283a;
  --line: rgba(255,255,255,0.07);
  --line-strong: rgba(255,255,255,0.12);
  --gold: #C8A348;
  --gold-bright: #d8b65e;
  --gold-dim: rgba(200,163,72,0.14);
  --text: #F3F4F6;
  --text-2: #aab1c0;
  --text-3: #6f7689;
  --radius: 14px;
  --shell: 1240px;
  --mono: "Geist Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Geist", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
::selection { background: rgba(200,163,72,0.3); }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
.mono { font-family: var(--mono); font-feature-settings: "tnum" 1; }
.gold { color: var(--gold); }
.shell { max-width: var(--shell); margin: 0 auto; padding: 0 28px; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15,17,23,0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 32px; height: 64px; }
.site-brand { display: flex; align-items: center; gap: 11px; background: none; border: 0; padding: 0; }
.site-logo { width: 32px; height: 32px; object-fit: contain; border-radius: 7px; }
.site-name { font-weight: 700; font-size: 16px; letter-spacing: -0.01em; color: var(--text); }
.site-name .accent { color: var(--gold); }
.header-nav { display: flex; gap: 26px; margin-left: 8px; }
.header-nav a { color: var(--text-2); font-size: 14px; font-weight: 500; transition: color .15s; }
.header-nav a:hover { color: var(--text); }
.header-patch {
  margin-left: auto; display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--text-2); font-family: var(--mono);
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px;
}
.header-patch .dot { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 8px #4ade80; }

/* hero */
.hero {
  padding: 72px 0 40px;
  background:
    radial-gradient(900px 420px at 50% -120px, rgba(200,163,72,0.10), transparent 70%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
  border-bottom: 1px solid var(--line);
}
.hero-kicker {
  margin: 0 0 16px; font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--gold);
}
.hero-title {
  margin: 0 0 30px; font-size: clamp(30px, 4.6vw, 52px); font-weight: 800;
  letter-spacing: -0.025em; line-height: 1.05; max-width: 760px;
}
.search-wrap {
  position: relative; max-width: 660px; display: flex; align-items: center;
}
.search-icon {
  position: absolute; left: 20px; color: var(--text-3); display: flex; pointer-events: none;
}
.search-input {
  width: 100%; height: 60px; padding: 0 20px 0 54px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 14px;
  color: var(--text); font-size: 16.5px; font-family: inherit; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.search-input::placeholder { color: var(--text-3); }
.search-input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-dim); }
.search-clear {
  position: absolute; right: 12px; background: var(--surface-3); border: 1px solid var(--line);
  color: var(--text-2); font-size: 12.5px; padding: 7px 12px; border-radius: 8px;
}
.search-clear:hover { color: var(--text); }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--line); color: var(--text-2);
  font-size: 13.5px; font-weight: 500; padding: 8px 13px; border-radius: 999px;
  transition: all .14s;
}
.chip:hover { border-color: var(--line-strong); color: var(--text); }
.chip.active { background: var(--gold-dim); border-color: rgba(200,163,72,0.55); color: var(--gold-bright); }
.chip-count {
  font-family: var(--mono); font-size: 11.5px; color: var(--text-3);
  background: rgba(255,255,255,0.05); padding: 1px 7px; border-radius: 999px;
}
.chip.active .chip-count { color: var(--gold); background: rgba(200,163,72,0.18); }

/* home grid */
.home-grid {
  display: grid; grid-template-columns: 1fr 320px; gap: 32px;
  padding-top: 38px; padding-bottom: 64px;
}
.results-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 20px; }
.section-title { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.results-count { font-family: var(--mono); font-size: 13px; color: var(--text-3); }
.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.empty {
  padding: 60px; text-align: center; color: var(--text-3);
  border: 1px dashed var(--line-strong); border-radius: var(--radius);
}

/* addon card */
.addon-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; display: flex; flex-direction: column; gap: 14px;
  cursor: pointer; transition: border-color .15s, transform .15s, background .15s;
  color: inherit;
}
.addon-card:hover { border-color: rgba(200,163,72,0.4); background: var(--surface-2); transform: translateY(-2px); }
.card-top { display: flex; gap: 13px; align-items: center; }
.addon-icon {
  display: flex; align-items: center; justify-content: center; flex: none;
  font-family: var(--mono); font-weight: 600; letter-spacing: -0.03em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), inset 0 0 0 1px rgba(0,0,0,0.2);
}
.icon-glyph { font-size: 1.15rem; font-weight: 700; font-family: var(--mono); }
.icon-initials { font-size: 0.85rem; font-weight: 700; font-family: var(--mono); }
.icon-initials.sm { font-size: 0.75rem; }
.card-head { min-width: 0; }
.card-name { margin: 0; font-size: 16.5px; font-weight: 700; letter-spacing: -0.01em; color: var(--text); }
.card-author { font-size: 12.5px; color: var(--text-3); }
.card-desc { margin: 0; font-size: 13.5px; color: var(--text-2); line-height: 1.5; min-height: 40px; }
.card-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-tag, .badge-cat {
  background: var(--surface-3); border: 1px solid var(--line); color: var(--text-2);
  font-size: 11.5px; font-weight: 500; padding: 4px 10px; border-radius: 999px; transition: all .14s;
}
.cat-tag:hover, .badge-cat:hover { color: var(--gold); border-color: rgba(200,163,72,0.4); }
.patch-badge, .badge-patch {
  font-family: var(--mono); font-size: 11.5px; font-weight: 500; color: var(--text-2);
  background: rgba(255,255,255,0.04); border: 1px solid var(--line);
  padding: 4px 9px; border-radius: 999px;
}
.card-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; border-top: 1px solid var(--line); margin-top: auto;
}
.dl-count { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--gold); }
.dl-word { color: var(--text-3); font-weight: 400; }

/* buttons */
.btn-gold {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: #1a1206; font-weight: 600; border: 0; border-radius: 10px;
  box-shadow: 0 2px 0 rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.3);
  transition: filter .14s, transform .1s;
}
.btn-gold:hover { filter: brightness(1.07); color: #1a1206; }
.btn-gold:active { transform: translateY(1px); }
.btn-gold.sm { font-size: 13px; padding: 8px 13px; }
.btn-gold.lg { font-size: 15.5px; padding: 14px 24px; border-radius: 12px; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 7px; justify-content: center;
  background: var(--surface-3); color: var(--text); border: 1px solid var(--line-strong);
  border-radius: 9px; font-weight: 500; transition: all .14s;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-bright); }
.btn-ghost.sm { font-size: 12.5px; padding: 7px 12px; }

/* sidebar */
.home-side { display: flex; flex-direction: column; gap: 20px; align-self: start; position: sticky; top: 84px; }
.side-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
}
.side-title {
  margin: 0 0 14px; font-size: 12px; font-weight: 600; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--text-3);
}
.side-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.side-item {
  display: flex; align-items: center; gap: 11px; padding: 7px; margin: 0 -7px;
  border-radius: 9px; cursor: pointer; transition: background .14s;
}
.side-item:hover { background: var(--surface-2); }
.side-rank { font-family: var(--mono); font-size: 13px; color: var(--text-3); width: 14px; text-align: center; flex: none; }
.side-icon { display: flex; align-items: center; justify-content: center; flex: none; border-radius: 8px; }
.side-text { min-width: 0; display: flex; flex-direction: column; }
.side-name { font-size: 13.5px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-sub { font-family: var(--mono); font-size: 11.5px; color: var(--text-3); }
.side-note-text { margin: 0; font-size: 13px; color: var(--text-2); line-height: 1.55; }
.side-note-text strong { color: var(--gold); font-family: var(--mono); font-weight: 600; }

/* detail */
.detail-band {
  background:
    radial-gradient(700px 320px at 18% -80px, rgba(200,163,72,0.10), transparent 70%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
  border-bottom: 1px solid var(--line); padding: 26px 0 34px;
}
.back-link {
  display: inline-flex; align-items: center; gap: 6px; background: none; border: 0;
  color: var(--text-2); font-size: 13.5px; font-weight: 500; padding: 0; margin-bottom: 26px;
}
.back-link:hover { color: var(--gold); }
.detail-head { display: flex; gap: 22px; align-items: center; }
.detail-headtext { flex: 1; min-width: 0; }
.detail-name { margin: 0; font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; letter-spacing: -0.025em; }
.detail-author { margin: 4px 0 14px; color: var(--text-2); font-size: 15px; }
.detail-badges { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.meta-pill {
  font-family: var(--mono); font-size: 12px; color: var(--text-2);
  background: rgba(255,255,255,0.04); border: 1px solid var(--line);
  padding: 5px 11px; border-radius: 999px;
}
.detail-cta { display: flex; flex-direction: column; align-items: flex-end; gap: 9px; flex: none; }
.cta-sub { font-size: 12px; color: var(--text-3); font-family: var(--mono); }
.detail-grid { display: grid; grid-template-columns: 1fr 320px; gap: 32px; padding-top: 38px; padding-bottom: 70px; }
.detail-side { display: flex; flex-direction: column; gap: 20px; align-self: start; position: sticky; top: 84px; }
.block { margin-bottom: 40px; }
.block-title {
  margin: 0 0 16px; font-size: 18px; font-weight: 700; letter-spacing: -0.01em;
  padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.prose { margin: 0 0 14px; color: var(--text-2); font-size: 15px; line-height: 1.66; max-width: 68ch; }
.version-note { font-size: 13px; color: var(--text-3); font-style: italic; margin-bottom: 14px; }

/* screenshots */
.shot-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.shot-img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 12px; border: 1px solid var(--line-strong); }

/* version table */
.vtable-wrap { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.vtable { width: 100%; border-collapse: collapse; }
.vtable th {
  text-align: left; font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-3); padding: 12px 16px; background: var(--surface-2); border-bottom: 1px solid var(--line);
}
.vtable td { padding: 14px 16px; font-size: 14px; color: var(--text-2); border-bottom: 1px solid var(--line); }
.vtable tr:last-child td { border-bottom: 0; }
.vtable tbody tr { transition: background .12s; }
.vtable tbody tr:hover { background: var(--surface); }
.vcell-v { color: var(--text); font-weight: 500; display: flex; align-items: center; gap: 9px; }
.latest-tag {
  font-size: 10px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--gold); background: var(--gold-dim);
  border: 1px solid rgba(200,163,72,0.4); padding: 2px 7px; border-radius: 999px;
}

/* spec */
.spec { margin: 0; display: flex; flex-direction: column; }
.spec > div { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.spec > div:last-child { border-bottom: 0; }
.spec dt { color: var(--text-3); font-size: 13px; margin: 0; }
.spec dd { margin: 0; font-size: 13.5px; font-weight: 500; color: var(--text); text-align: right; }
.spec dd.gold { color: var(--gold); }
.spec-link { color: #7EA8D4; }
.spec-link:hover { color: var(--gold); }

/* pagination */
.pagination { display: flex; gap: 8px; margin-top: 32px; flex-wrap: wrap; }
.page-btn {
  background: var(--surface); border: 1px solid var(--line); color: var(--text-2);
  padding: 7px 13px; border-radius: 8px; font-size: 13.5px; transition: all .14s;
}
.page-btn:hover, .page-btn.active { background: var(--gold-dim); border-color: rgba(200,163,72,0.4); color: var(--gold-bright); }

/* blog */
.blog-wrap { max-width: 860px; margin: 0 auto; padding: 40px 28px 70px; }
.page-title { font-size: 28px; font-weight: 800; letter-spacing: -0.025em; margin-bottom: 28px; }
.blog-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; margin-bottom: 16px; transition: border-color .15s;
}
.blog-card:hover { border-color: var(--line-strong); }
.blog-meta { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.blog-date { font-size: 13px; color: var(--text-3); font-family: var(--mono); }
.blog-title { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 8px; letter-spacing: -0.01em; }
.blog-title a:hover { color: var(--gold); }
.blog-excerpt { color: var(--text-2); font-size: 14px; line-height: 1.6; margin-bottom: 14px; }
.read-more { font-size: 13.5px; color: var(--gold); font-weight: 500; }
.read-more:hover { color: var(--gold-bright); }
.blog-post-title { font-size: clamp(24px, 3vw, 36px); font-weight: 800; letter-spacing: -0.025em; margin: 16px 0 24px; }
.blog-body { color: var(--text-2); line-height: 1.8; font-size: 15px; }
.blog-body h1, .blog-body h2, .blog-body h3, .blog-body h4 { color: var(--text); font-weight: 700; margin: 28px 0 12px; line-height: 1.3; }
.blog-body h2 { font-size: 20px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.blog-body h3 { font-size: 17px; color: var(--gold); }
.blog-body p { margin-bottom: 16px; }
.blog-body ul, .blog-body ol { margin: 0 0 16px 24px; }
.blog-body li { margin-bottom: 6px; }
.blog-body a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.blog-body img { max-width: 100%; border-radius: 10px; margin: 20px 0; border: 1px solid var(--line); }
.blog-body strong { color: var(--text); font-weight: 700; }
.blog-body blockquote { border-left: 3px solid var(--gold); padding: 12px 20px; margin: 20px 0; background: var(--surface); border-radius: 0 8px 8px 0; }
.back-blog { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 13.5px; margin-bottom: 16px; }
.back-blog:hover { color: var(--gold); }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); margin-top: auto; }
.footer-inner { display: grid; grid-template-columns: 1.3fr 2fr; gap: 40px; padding-top: 48px; padding-bottom: 36px; }
.footer-brand { display: flex; flex-direction: column; }
.footer-logo { width: 28px; height: 28px; object-fit: contain; border-radius: 6px; margin-bottom: 14px; }
.footer-brandname { font-size: 15px; font-weight: 700; color: var(--text); }
.footer-brandname .accent { color: var(--gold); }
.footer-tag { margin: 10px 0 0; font-size: 13px; color: var(--text-3); line-height: 1.6; max-width: 34ch; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.footer-col { display: flex; flex-direction: column; gap: 11px; }
.footer-col h5 { margin: 0 0 4px; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
.footer-col a { font-size: 13.5px; color: var(--text-2); transition: color .14s; }
.footer-col a:hover { color: var(--gold); }
.footer-base {
  display: flex; justify-content: space-between; padding-top: 20px; padding-bottom: 28px;
  border-top: 1px solid var(--line); font-size: 12.5px; color: var(--text-3);
}

/* responsive */
@media (max-width: 980px) {
  .home-grid, .detail-grid { grid-template-columns: 1fr; }
  .home-side { position: static; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .card-grid { grid-template-columns: 1fr; }
  .shot-grid { grid-template-columns: 1fr; }
  .header-nav { display: none; }
  .detail-head { flex-wrap: wrap; }
  .detail-cta { align-items: flex-start; width: 100%; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .shell { padding: 0 16px; }
}
