/* «Свой пак» funnel: results nudge, «Начать с готового», landing section «Играйте своими вопросами». */

/* pack cards: author and plays may wrap on narrow cards */
.pcard-meta { flex-wrap: wrap; row-gap: 4px; }
.pcard-author { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }

/* --- /packs/new: start from a template or a copy --- */
.pk-start { margin: 0 0 18px; scroll-margin-top: 90px; }
.pk-start-head h2 { margin: 0 0 4px; font-family: var(--display); font-size: 28px; }
.pk-start-head p { margin: 0 0 14px; max-width: 64ch; }
.pk-start-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.pk-start-card { position: relative; display: grid; align-content: start; gap: 6px; padding: 16px; border-radius: var(--r-md); color: inherit; text-decoration: none; transition: transform var(--dur-2, 0.2s) var(--ease, ease), box-shadow var(--dur-2, 0.2s) var(--ease, ease); }
a.pk-start-card:hover, a.pk-start-card:focus-visible { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--line-2) inset, 0 14px 30px rgba(0, 0, 0, 0.3); }
.pk-start-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--grad-gold); color: #1b1206; }
.pk-start-ico .ico { width: 20px; height: 20px; }
.pk-start-card b { font-family: var(--display); font-size: 22px; line-height: 1.1; color: var(--ink); }
.pk-start-card small { color: var(--muted); font-size: 13px; line-height: 1.45; }
.pk-start-meta { font-size: 12px; font-weight: 700; color: var(--ink-2); }
.pk-start-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 13.5px; font-weight: 800; color: var(--gold); }
.pk-start-go .ico { width: 15px; height: 15px; }
.pk-start-copy .pk-start-go { justify-self: start; color: var(--ink); }
.pk-start-pick select { width: 100%; min-height: 40px; padding: 0 10px; border: 0; border-radius: 10px; background: var(--field, var(--surface-2)); box-shadow: 0 0 0 1px var(--line) inset; color: var(--ink); font: inherit; font-size: 14px; }
.pk-start-or { display: flex; align-items: center; gap: 12px; margin: 20px 0 4px; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.pk-start-or::before, .pk-start-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* --- /packs/new/start --- */
.ps-mode { margin: 0; font-size: 13.5px; }
.ps-mode b { color: var(--ink); }
.ps-name input { font-size: 17px; }
.ps-preview summary { cursor: pointer; font-weight: 800; color: var(--ink); }
.ps-preview summary .num { margin-left: 6px; color: var(--gold); }
.ps-list { display: grid; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; max-height: 460px; overflow: auto; }
.ps-list li { display: grid; grid-template-columns: 86px 1fr; gap: 10px; align-items: start; padding: 8px 10px; border-radius: 10px; background: var(--line-soft); font-size: 14px; line-height: 1.45; }
.ps-list .chip { justify-content: center; font-size: 11px; }
.ps-list .chip.is-dare { color: #f0b6c4; }
.ps-list .chip.is-truth { color: #e7c98d; }
.ps-qs { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ps-q { display: grid; gap: 8px; padding: 14px; border-radius: var(--r-md); }
.ps-q-text { display: flex; gap: 10px; align-items: baseline; margin: 0; font-weight: 700; color: var(--ink); line-height: 1.4; }
.ps-q-n { flex: none; min-width: 22px; color: var(--gold); font-weight: 800; font-size: 13px; }
.ps-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ps-opt { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ps-opt input[type="radio"] { flex: none; width: 18px; height: 18px; accent-color: var(--gold); }
.ps-opt input[type="text"] { flex: 1; min-width: 0; min-height: 38px; padding: 0 10px; border: 0; border-radius: 10px; background: var(--field, var(--surface-2)); box-shadow: 0 0 0 1px var(--line) inset; color: var(--ink); font: inherit; font-size: 14px; }
.ps-opt input[type="text"][data-answer] { box-shadow: 0 0 0 1px var(--gold) inset; }
.ps-opts.is-bool { grid-template-columns: repeat(2, max-content); gap: 18px; }
.ps-opts.is-bool .ps-opt span, .ps-num span { font-weight: 700; }
.ps-num { max-width: 260px; }
.ps-q .field-hint { margin: 0; }
@media (max-width: 560px) {
  .ps-opts { grid-template-columns: 1fr; }
  .ps-list li { grid-template-columns: 1fr; gap: 4px; }
  .ps-list .chip { justify-self: start; }
}

/* --- game landing: «Играйте своими вопросами» --- */
.gp-own { scroll-margin-top: 90px; margin-top: 34px; padding: clamp(18px, 3vw, 30px); border-radius: var(--r-lg); }
.gp-own h2 { margin: 0 0 8px; font-family: var(--display); font-size: 32px; }
.gp-own-lead { margin: 0 0 18px; max-width: 70ch; color: var(--muted); line-height: 1.6; }
.gp-own-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: own; }
.gp-own-step { position: relative; display: grid; grid-template-rows: auto 1fr; overflow: hidden; border-radius: var(--r-md); background: var(--surface-2); box-shadow: 0 0 0 1px var(--line) inset; }
.gp-own-art { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #110d12; }
.gp-own-art img { width: 100%; height: 100%; object-fit: cover; }
.gp-own-step:nth-child(3) .gp-own-art img { object-position: 72% 60%; }
.gp-own-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(10, 7, 12, 0.85)); }
.gp-own-badge { position: absolute; z-index: 1; left: 12px; bottom: 10px; display: flex; align-items: center; gap: 8px; color: #f5ede1; font-weight: 800; font-size: 13px; }
.gp-own-badge i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--grad-gold); color: #1b1206; font-style: normal; font-family: var(--display); font-size: 19px; }
.gp-own-badge .ico { width: 18px; height: 18px; }
.gp-own-body { display: grid; align-content: start; gap: 6px; padding: 14px 16px 16px; }
.gp-own-body h3 { margin: 0; font-size: 17px; color: var(--ink); }
.gp-own-body p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.gp-own-cta { margin-top: 18px; }
@media (max-width: 860px) {
  .gp-own-steps { grid-template-columns: 1fr; }
  .gp-own-step { grid-template-rows: none; grid-template-columns: 120px 1fr; }
  .gp-own-art { aspect-ratio: auto; min-height: 100%; }
  .gp-own h2 { font-size: 26px; }
}
@media (max-width: 420px) {
  .gp-own-step { grid-template-columns: 92px 1fr; }
  .gp-own-badge { left: 8px; }
  .gp-own-badge span { display: none; }
}

/* --- results screen nudge --- */
.rm-nudge-slot { scroll-margin-top: 90px; width: 100%; display: flex; justify-content: center; }
.rm-nudge { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: center; width: min(520px, 100%); margin-top: 14px; padding: 14px 16px; border-radius: 18px; text-align: left; background: linear-gradient(135deg, rgba(217, 183, 122, 0.14), rgba(122, 22, 52, 0.18)); box-shadow: 0 0 0 1px var(--line-2) inset; animation: rise-in 0.6s 1.2s var(--ease, ease) both; }
.rm-nudge-ico { grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--grad-gold); color: #1b1206; }
.rm-nudge-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rm-nudge b { font-size: 15.5px; color: var(--ink); line-height: 1.3; }
.rm-nudge p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.45; }
.rm-nudge-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin-top: 4px; }
@media (max-width: 480px) {
  .rm-nudge { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .rm-nudge-ico { grid-row: auto; }
  .rm-nudge-actions { justify-content: center; }
}
