:root {
  --bg: #faf7f0; --card: #fff; --ink: #23261f; --muted: #6b7064; --line: #e4dfd2;
  --accent: #2f7d4f; --accent-ink: #fff; --soft: #eef3ea; --warn: #b3402c; --ok: #2f7d4f;
  --checker: #f1ede2;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #171915; --card: #20231d; --ink: #ecebe4; --muted: #a2a698; --line: #33372e;
    --accent: #5cb27e; --accent-ink: #10130f; --soft: #262b22; --warn: #e5826f; --ok: #5cb27e; --checker: #2a2e26; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.9rem; line-height: 1.25; margin: .6em 0 .4em; text-wrap: balance; }
h2 { font-size: 1.25rem; margin: 2em 0 .7em; display: flex; align-items: baseline; gap: .8rem; }
h3 { font-size: 1.02rem; margin: 1.2em 0 .3em; }
main { max-width: 1180px; margin: 0 auto; padding: 1rem 1.25rem 3rem; min-height: 70vh; }
.muted, small { color: var(--muted); }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 46rem; }

.top { display: flex; align-items: center; gap: 1rem; padding: .7rem 1.25rem; border-bottom: 1px solid var(--line);
  background: var(--card); position: sticky; top: 0; z-index: 5; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: .45rem; font-weight: 800; font-size: 1.2rem; color: var(--ink); }
.logo:hover { text-decoration: none; }
.top nav { display: flex; align-items: center; gap: 1rem; margin-left: auto; flex-wrap: wrap; }
.top nav a { color: var(--ink); font-size: .95rem; }
.top nav .lang { border: 1px solid var(--line); border-radius: 999px; padding: .1rem .7rem; }

.search { position: relative; flex: 1 1 260px; max-width: 460px; display: flex; gap: .5rem; }
.search input { width: 100%; padding: .55rem .9rem; border: 1px solid var(--line); border-radius: 999px;
  background: var(--bg); color: var(--ink); font: inherit; }
.search input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.search.big { max-width: 620px; margin: 1.2rem auto .6rem; flex: none; }
.search.big input { padding: .8rem 1.2rem; font-size: 1.05rem; background: var(--card); }
.suggest { position: absolute; top: calc(100% + 4px); left: 0; right: 0; margin: 0; padding: .3rem; list-style: none;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.12); z-index: 10; text-align: left; }
.suggest a { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem .7rem; border-radius: 8px; color: var(--ink); }
.suggest a:hover, .suggest a.sel { background: var(--soft); text-decoration: none; }
.suggest small { text-transform: uppercase; font-size: .7rem; letter-spacing: .04em; }

.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent);
  border-radius: 999px; padding: .6rem 1.3rem; font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; }
.btn:hover { filter: brightness(1.08); text-decoration: none; }
.btn.small { padding: .25rem .85rem; font-size: .9rem; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.top nav a.btn { color: var(--accent-ink); }

.hero { text-align: center; padding: 2.4rem 0 1rem; }
.hero h1 { font-size: 2.4rem; }
.hero p { margin: .3rem auto; max-width: 40rem; }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .7rem; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: .8rem 1rem; color: var(--ink); display: flex; flex-direction: column; }
.tile:hover { border-color: var(--accent); text-decoration: none; }
.tile small { text-transform: uppercase; font-size: .75rem; }

.chips { display: flex; flex-wrap: wrap; gap: .45rem; margin: .4rem 0; }
.chip { border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; padding: .15rem .8rem; font-size: .9rem; }
.chip:hover { border-color: var(--accent); text-decoration: none; }
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.more { font-size: .9rem; font-weight: 400; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; color: var(--ink); display: flex; flex-direction: column; }
.card:hover { border-color: var(--accent); text-decoration: none; transform: translateY(-2px); transition: transform .12s; }
.thumb { aspect-ratio: 1; display: block;
  background: repeating-conic-gradient(var(--checker) 0 25%, transparent 0 50%) 0 0 / 20px 20px; }
.thumb img { width: 100%; height: 100%; object-fit: contain; display: block; image-rendering: auto; }
.card-b { padding: .6rem .8rem .7rem; display: flex; flex-direction: column; }
.card-b strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-b small { font-size: .8rem; }

.filters { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: .6rem 1rem; margin: 1rem 0; }
.fgroup { display: flex; gap: .8rem; align-items: baseline; }
.fgroup + .fgroup { border-top: 1px dashed var(--line); }
.flabel { flex: 0 0 4.5rem; color: var(--muted); font-size: .85rem; }
.listbar { display: flex; justify-content: space-between; margin: 1rem 0 .7rem; color: var(--muted); font-size: .95rem; }
.sort a { margin-left: .8rem; color: var(--muted); }
.sort a.on { color: var(--ink); font-weight: 600; }
.pager { display: flex; justify-content: center; gap: 1rem; margin: 2rem 0; }
.empty { padding: 2.5rem 1rem; text-align: center; color: var(--muted); background: var(--card); border: 1px dashed var(--line); border-radius: 14px; }
.faq { max-width: 46rem; }

.crumbs { font-size: .9rem; color: var(--muted); }
.asset { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, 1fr); gap: 2rem; margin-top: .8rem; }
.preview { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; align-self: start;
  background: repeating-conic-gradient(var(--checker) 0 25%, transparent 0 50%) 0 0 / 24px 24px; }
.preview img { width: 100%; height: auto; max-height: 640px; object-fit: contain; display: block; }
model-viewer { width: 100%; height: 520px; display: block; }
.info h1 { margin-top: 0; }
.by { margin: 0 0 1rem; color: var(--muted); }
.download { font-size: 1.05rem; padding: .8rem 1.6rem; }
.licbox { background: var(--soft); border-radius: 12px; padding: .8rem 1rem; margin: 1rem 0; }
.licbox p { margin: .2rem 0 .5rem; }
.licbox label { font-size: .85rem; color: var(--muted); }
.copy { display: flex; gap: .5rem; }
.copy input { flex: 1; min-width: 0; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: .3rem 1.2rem; margin: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.desc { max-width: 46rem; white-space: pre-line; }
.report { margin: 2rem 0; color: var(--muted); font-size: .92rem; }
.report form { display: grid; gap: .5rem; max-width: 30rem; margin-top: .6rem; }

input, select, textarea { font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: .5rem .7rem; }
input[type=file] { padding: .35rem; }
input[type=checkbox], input[type=radio] { width: 1.05rem; height: 1.05rem; flex: none; margin-top: .3rem; }
.narrow { max-width: 26rem; margin: 2rem auto; }
.narrow.wide { max-width: 46rem; }
.narrow.left { margin-left: 0; }
.center { text-align: center; }
.form { display: grid; gap: 1rem; }
.form label { display: grid; gap: .3rem; font-weight: 600; font-size: .95rem; }
.form label small, .form > small { font-weight: 400; }
.form .check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.row.three { grid-template-columns: repeat(3, 1fr); }
fieldset { border: 1px solid var(--line); border-radius: 12px; display: grid; gap: .5rem; padding: .8rem 1rem; margin: 0; }
legend { font-weight: 600; font-size: .95rem; padding: 0 .4rem; }

.notice { background: var(--soft); border-left: 4px solid var(--accent); border-radius: 8px; padding: .6rem 1rem; }
.notice.err { border-color: var(--warn); color: var(--warn); }
.errtext { color: var(--warn); }
.table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.table td, .table th { padding: .6rem .8rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table th { white-space: nowrap; color: var(--muted); font-weight: 600; }
.tthumb img { width: 56px; height: 56px; object-fit: contain; display: block; }
.tthumb.big img { width: 140px; height: 140px; }
.inline { display: flex; gap: .4rem; margin-top: .4rem; }
.status { font-size: .85rem; border-radius: 999px; padding: .1rem .7rem; background: var(--soft); white-space: nowrap; }
.status.approved { color: var(--ok); }
.status.rejected { color: var(--warn); }

.why { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; margin-top: 3rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.why p { color: var(--muted); margin: 0; }
.doc { max-width: 46rem; }
pre { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: .8rem 1rem; overflow-x: auto; font-size: .88rem; }
code { font-family: ui-monospace, Consolas, monospace; }
.foot { border-top: 1px solid var(--line); padding: 1.5rem 1.25rem 2.5rem; text-align: center; color: var(--muted); font-size: .92rem; }
.foot a { margin: 0 .6rem; color: var(--muted); }

@media (max-width: 760px) {
  .asset { grid-template-columns: 1fr; gap: 1.2rem; }
  .row, .row.three { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.8rem; }
  .fgroup { flex-direction: column; gap: 0; padding-top: .4rem; }
  .flabel { flex: none; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .7rem; }
  .top nav { margin-left: 0; gap: .8rem; }
  model-viewer { height: 360px; }
}

.animbar { display: flex; gap: .6rem; align-items: center; padding: .5rem .8rem; border-top: 1px solid var(--line); background: var(--card); font-size: .9rem; }
.animbar select { padding: .25rem .5rem; }
.desc h2 { margin-top: 1.2em; }

.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.game { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: .9rem 1rem; display: flex; flex-direction: column; }
.game h3 { margin: 0 0 .3rem; font-size: 1.05rem; }
.game h3 a { color: var(--ink); }
.game p { margin: 0 0 .6rem; color: var(--muted); font-size: .93rem; flex: 1; }
.game .game-foot { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex: none; margin: 0; font-size: .85rem; }
