/* Shader type pages (shaders/<slug>/index.html), built by server/build-shaders-pages.py */
:root { --bg: #FFF6EC; --panel: #fff; --edge: #F1D2BF; --ink: #2B1A0E; --muted: #7a6458; --green: #4CAF35; --green-d: #2E8B1F; --coral: #EE6A5B; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 Outfit, system-ui, -apple-system, Segoe UI, Roboto, sans-serif; }
a { color: var(--green-d); font-weight: 600; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.top { position: sticky; top: 0; z-index: 10; background: rgba(255,246,236,.94); border-bottom: 1px solid var(--edge); backdrop-filter: blur(6px); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 17px; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.get-top { white-space: nowrap; flex: none; background: var(--green); color: #fff; text-decoration: none; font-weight: 700; padding: 9px 16px; border-radius: 10px; box-shadow: 0 3px 0 var(--green-d); }
.crumbs { font-size: 13px; color: var(--muted); margin: 22px 0 6px; }
.crumbs a { color: var(--muted); font-weight: 500; }
h1 { font-size: clamp(28px, 4.4vw, 46px); line-height: 1.12; margin: 6px 0 14px; letter-spacing: -.5px; }
h2 { font-size: clamp(22px, 3vw, 30px); line-height: 1.2; margin: 46px 0 14px; }
h3 { font-size: 17px; line-height: 1.3; margin: 0; }
.intro { font-size: 17px; color: #4a3a30; max-width: 780px; }
.updated { font-size: 13px; color: var(--muted); }
.cta { margin: 22px 0 8px; }
.store { display: inline-flex; align-items: center; gap: 10px; background: #000; color: #fff; text-decoration: none; padding: 9px 20px 9px 14px; border-radius: 12px; font-weight: 700; font-size: 20px; line-height: 1.05; }
.store small { display: block; font-size: 11px; font-weight: 400; }
.store svg { width: 24px; height: 28px; flex: none; }
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); }
.item { background: var(--panel); border-radius: 16px; overflow: hidden; box-shadow: 0 4px 0 var(--edge); transition: transform .2s ease, box-shadow .2s ease; }
.item:hover { transform: translateY(-4px); box-shadow: 0 8px 0 var(--edge), 0 16px 28px rgba(43,26,14,.12); }
.item .card { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; font-weight: 400; }
.item .pic { position: relative; aspect-ratio: 16 / 9; background: #ddd; overflow: hidden; }
.item .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.item:hover .pic img { transform: scale(1.04); }
.item .rank { position: absolute; top: 10px; left: 10px; background: #fff; color: var(--coral); font-weight: 800; font-size: 13px; padding: 4px 8px; border-radius: 8px; }
.item .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.item h3 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.item .desc { margin: 0; font-size: 14px; color: #6b5448; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 4.2em; }
.item .get { margin-top: auto; color: var(--green-d); font-weight: 700; font-size: 14px; }
.steps { margin: 0; padding-left: 22px; max-width: 820px; } .steps li { margin: 6px 0; }
details { background: var(--panel); border-radius: 12px; padding: 12px 16px; margin: 10px 0; box-shadow: 0 3px 0 var(--edge); max-width: 820px; }
summary { cursor: pointer; font-weight: 700; }
.more { display: flex; flex-wrap: wrap; gap: 10px; }
.more a { background: var(--panel); border-radius: 999px; padding: 9px 16px; text-decoration: none; color: var(--ink); box-shadow: 0 3px 0 var(--edge); }
.more a:hover { color: var(--green-d); }
footer { border-top: 1px solid var(--edge); margin-top: 56px; padding: 22px 0 40px; font-size: 13px; color: var(--muted); }
@media (max-width: 600px) { .top .brand span { font-size: 15px; } h2 { margin-top: 36px; } }
@media (prefers-reduced-motion: reduce) { .item, .item .pic img { transition: none; } }
footer .types { margin: 0 0 10px; } footer .types a { color: var(--ink); font-weight: 600; }
/* 5 packs first, "See more" shows 10, then "See all … in the app" (App Store) */
.js .item.extra:not(.open) { display: none; }
.more-row { margin: 18px 0 0; display: flex; justify-content: center; }
.see-more, .see-all { display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer; font: 700 16px/1 Outfit, system-ui, sans-serif; padding: 13px 24px; border-radius: 12px; text-decoration: none; }
.see-more { background: #fff; color: var(--ink); box-shadow: 0 4px 0 var(--edge); }
.see-more:hover { transform: translateY(-2px); }
.see-all { background: var(--green); color: #fff; box-shadow: 0 4px 0 var(--green-d); }
.see-all[hidden] { display: none; }
/* install guide page */
.need { margin: 0; padding-left: 20px; } .need li { margin: 4px 0; }
.gsteps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
.gstep { background: #fff; border-radius: 16px; padding: 16px; box-shadow: 0 4px 0 var(--edge); display: flex; flex-direction: column; gap: 8px; }
.gstep h3 { display: flex; align-items: center; gap: 10px; font-size: 18px; }
.gstep h3 span { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-size: 15px; }
.gstep p { margin: 0; color: #5a463b; }
.gstep img { margin-top: auto; width: 100%; border-radius: 12px; border: 1px solid var(--edge); max-height: 420px; object-fit: contain; background: #f6efe8; }
