/* horizontal.one/prompts: 3D 游戏提示词 · 3D Game Prompts (tools/prompts/build.mjs makes the pages; the home page shows its
   cards too). On top of site.css and cases.css: their tokens, type scale, spacing steps and easing. */
.pgrid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.pcard[hidden] { display: none; }
.pcard a { display: flex; flex-direction: column; height: 100%; padding: 8px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; transition: border-color 300ms var(--ease), background-color 300ms var(--ease); }
.pcard a:hover { border-color: #5a5a5a; background: #2b2b2b; }
.pcard-media { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #181818; }
.pcard-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.pcard a:hover .pcard-media img { transform: scale(1.04); }
.pcard-play { position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 9999px; background: rgb(15 15 15 / 0.6); border: 1px solid rgb(255 255 255 / 0.16); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background-color 300ms var(--ease), color 300ms var(--ease); }
.pcard-play .icon { width: 16px; height: 16px; }
.pcard a:hover .pcard-play { background: var(--accent); color: var(--on-accent); }
.pcard-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 16px 16px; }
.pcard h3 { font-size: 24px; line-height: 32px; letter-spacing: -0.01em; }
.pcard .r { margin: 0; color: var(--muted); font-size: 14px; line-height: 20px; }
.chip.pr-free { color: var(--live); border-color: rgb(111 211 154 / 0.5); }
.chip.pr-locked { display: inline-flex; align-items: center; gap: 4px; color: var(--accent); border-color: rgb(242 180 90 / 0.5); }
.chip.pr-locked .icon { width: 12px; height: 12px; }   /* (pr-lock is the sign-up panel: a chip of that name took its padding) */
.chip.pr-tag { color: var(--muted); }
.pr-filters { margin-bottom: 24px; }

/* ---------------------------------------------------------------- how it works, the form, the questions */
.prompts-site main > section { padding: 0; }
.prompts-site main > section.cases-head { padding: 32px 0; }
.prompts-site main > section.cases-body { padding: 16px 0 96px; }
.pr-how, .pr-all, .pr-faq { padding-bottom: 96px !important; }
.pr-how h2, .pr-faq h2, .pr-more h2, .pr-use h2 { font-size: 30px; line-height: 36px; letter-spacing: -0.02em; margin-bottom: 24px; }
.pr-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.pr-steps li { display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.pr-steps .n { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9999px; background: var(--raised); color: var(--accent); font-size: 14px; line-height: 20px; font-weight: 600; margin-bottom: 8px; }
.pr-steps h3 { font-size: 18px; line-height: 28px; }
.pr-steps p { margin: 0; color: var(--muted); font-size: 14px; line-height: 20px; }
.pr-lock { display: flex; flex-direction: column; gap: 12px; padding: 32px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.pr-lock h2, .pr-lock h3 { font-size: 24px; line-height: 32px; letter-spacing: -0.01em; }
.pr-lock > p { margin: 0; color: var(--muted); max-width: 40em; }
.pr-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.pr-form input[type="email"] { flex: 1 1 240px; max-width: 360px; min-height: 48px; font: inherit; font-size: 16px; line-height: 24px; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 9999px; padding: 8px 24px; }
.pr-form input[type="email"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pr-form .pr-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.pr-form button[disabled] { opacity: 0.6; cursor: default; }
.pr-msg { flex-basis: 100%; margin: 0; min-height: 20px; color: var(--muted); font-size: 14px; line-height: 20px; }
.pr-msg.ok { color: var(--live); }
.pr-msg.bad { color: var(--accent); }
.pr-form.done input, .pr-form.done button { display: none; }

/* ---------------------------------------------------------------- a prompt's page */
.pr-page .wrap { display: grid; gap: 32px; padding: 16px 0 96px; }
.pr-crumb { margin: 0; }
.pr-crumb a { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; line-height: 20px; text-decoration: none; transition: color 300ms var(--ease); }
.pr-crumb a:hover { color: var(--text); }
.pr-crumb .icon { width: 16px; height: 16px; }
.pr-head { display: grid; gap: 16px; }
.pr-head h1 { font-size: 60px; line-height: 1.1; letter-spacing: -0.02em; }
.pr-top { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.pr-demo { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); background: #181818; }
.pr-demo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.pr-demo:hover img { transform: scale(1.03); }
.pr-demo .btn { position: absolute; left: 24px; bottom: 24px; }
.pr-side { display: flex; flex-direction: column; gap: 16px; padding: 32px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.pr-side h2 { font-size: 18px; line-height: 28px; }
.pr-feats { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pr-feats li { display: flex; gap: 12px; align-items: flex-start; color: var(--soft); }
.pr-feats .icon { margin-top: 2px; color: var(--live); }
.pr-tested { margin: auto 0 0; padding-top: 16px; border-top: 1px solid var(--line); color: var(--faint); font-size: 12px; line-height: 16px; }
.pr-text { display: grid; gap: 16px; }
.pr-text-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.pr-text-head h2 { font-size: 30px; line-height: 36px; letter-spacing: -0.02em; }
.pr-pre { margin: 0; padding: 24px; border-radius: 16px; background: #181818; border: 1px solid var(--line); color: #d4d4d4; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; line-height: 24px; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 640px; overflow: auto; }
.pr-pre code { font: inherit; }
.pr-pre.pr-cut { max-height: none; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.pr-note { margin: 0; color: var(--muted); font-size: 14px; line-height: 20px; }
.pr-use ol { margin: 0; padding-left: 24px; display: grid; gap: 8px; color: var(--soft); max-width: 44em; }
@media (max-width: 900px) {
  .pr-top { grid-template-columns: 1fr; }
  .pr-head h1 { font-size: 36px; line-height: 40px; }
}
@media (max-width: 640px) {
  .pr-lock, .pr-side { padding: 24px; }
  .pr-demo .btn { left: 16px; bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .pcard-media img, .pr-demo img { transition: none; transform: none !important; }
}
