:root { --bg:#14111c; --panel:#1f1a2b; --panel2:#2a2338; --text:#ece8f5; --muted:#a9a1bd; --line:#3a3150; --accent:#8477b7; --accent2:#a597de; --tile:#262036; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Arial, sans-serif; }
a { color: var(--accent2); }
code, pre { background: #120f19; border-radius: 6px; font-size: .92em; }
code { padding: 1px 5px; } pre { padding: 10px 12px; overflow-x: auto; margin: 6px 0 12px; }
header.top { background: linear-gradient(90deg,#2b2140,#1f1a2b); border-bottom: 1px solid var(--line); }
header.top .in { max-width: 1100px; margin: 0 auto; padding: 8px 16px; display: flex; align-items: center; gap: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 18px; }
.brand span span { color: var(--accent2); }
header.top nav { margin-left: auto; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px 16px; font-size: 14px; }
header.top nav a { color: var(--muted); text-decoration: none; }
.page { max-width: 1100px; margin: 0 auto; padding: 14px 16px 30px; }
.crumbs { font-size: 14px; color: var(--muted); margin: 4px 0 10px; }
.crumbs a { color: var(--muted); }
h1 { font-size: 28px; margin: 0 0 4px; line-height: 1.25; word-break: break-word; }
.lead { color: var(--muted); margin: 0 0 16px; }
.obj { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.pic { background: radial-gradient(circle at 50% 40%, #3a3050, var(--tile) 70%); border: 1px solid var(--line); border-radius: 12px; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; }
.pic img { width: 100%; height: 100%; object-fit: contain; }
.pic .none { color: var(--muted); }
table.facts { width: 100%; border-collapse: collapse; font-size: 15px; }
table.facts th, table.facts td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.facts th { color: var(--muted); font-weight: 500; width: 38%; }
h2 { font-size: 19px; margin: 22px 0 8px; }
.cta { display: inline-block; margin-top: 12px; background: var(--accent); color: #fff; text-decoration: none; padding: 9px 16px; border-radius: 8px; font-weight: 600; border: 1px solid var(--accent); }
.cta.ghost { background: var(--panel); color: var(--text); border-color: var(--line); }
.favstar { font:inherit; cursor:pointer; } .favstar span { color:#c9c0e0; } .favstar.on span { color:#ffcf4d; } 
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.grid a { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; text-decoration: none; color: var(--text); }
.grid a:hover { border-color: var(--accent2); }
.grid .t { aspect-ratio: 1; background: radial-gradient(circle at 50% 40%, #332a47, var(--tile) 70%); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 12px; }
.grid img { width: 100%; height: 100%; object-fit: contain; display: block; }
.grid .m { padding: 5px 8px 7px; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grid .m b { color: var(--text); font-size: 14px; display: block; }
.pager { display: flex; justify-content: space-between; margin-top: 18px; gap: 10px; flex-wrap: wrap; }
.links { columns: 3 220px; font-size: 14px; padding-left: 18px; }
footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; text-align: center; padding: 18px 16px 30px; }
footer p { max-width: 900px; margin: 6px auto; }
@media (max-width: 600px) { header.top nav { gap: 2px 12px; } }
@media (max-width: 760px) { .obj { grid-template-columns: 1fr; } h1 { font-size: 23px; } .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 420px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
