/* Instant personalized puzzle gifts (/personalized-puzzle-book/, /custom-crossword-maker/). Uses the site tokens. */
.pg-wrap { display: grid; gap: 1.4rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .pg-wrap { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; }
  .pg-side { position: sticky; top: 1rem; } }
.pg-form { background: var(--card); border: 1px solid var(--rule); border-radius: 14px; padding: 1.2rem; box-shadow: var(--shadow-sm); }
.pg-form h2 { margin: 1.4rem 0 .4rem; font-size: 1.25rem; }
.pg-form h2:first-child { margin-top: 0; }
.pg-step { display: inline-block; background: var(--green); color: #fff; border-radius: 999px; width: 1.7rem; height: 1.7rem;
  line-height: 1.7rem; text-align: center; font-size: .95rem; margin-right: .45rem; }
.pg-form label.pg-l { font-weight: 700; display: block; margin: .7rem 0 .3rem; }
.pg-form input[type=text], .pg-form textarea, .pg-form select { width: 100%; font: inherit; padding: .55rem .7rem;
  border: 1px solid var(--rule); border-radius: 10px; background: var(--card); color: var(--ink); box-sizing: border-box; }
.pg-form textarea { min-height: 4.6rem; }
.pg-row { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.pg-help { color: var(--muted); font-size: .92rem; margin: .25rem 0 0; }
.pg-swatches { display: flex; flex-wrap: wrap; gap: .5rem; }
.pg-swatches label, .pg-sizes label { border: 2px solid var(--rule); border-radius: 999px; padding: .4rem .85rem; cursor: pointer; font-weight: 600; }
.pg-swatches input, .pg-sizes input { margin-right: .35rem; }
.pg-sizes { display: flex; flex-wrap: wrap; gap: .5rem; }
.pg-dot { display: inline-block; width: .9rem; height: .9rem; border-radius: 50%; vertical-align: -2px; margin-right: .3rem; border: 1px solid #0003; }
.pg-dot-forest { background: #1F3D2F; } .pg-dot-navy { background: #1C2B45; } .pg-dot-cranberry { background: #6B1E2A; } .pg-dot-plum { background: #43284B; }
.pg-clue { display: grid; grid-template-columns: 1.8rem minmax(0, 1fr) minmax(0, 2fr); gap: .4rem; margin-bottom: .4rem; align-items: center; }
.pg-n { color: var(--muted); text-align: right; font-size: .9rem; }
@media (max-width: 560px) { .pg-clue { grid-template-columns: 1.6rem minmax(0, 1fr); } .pg-clue .pg-c { grid-column: 2; } }
.pg-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-top: 1rem; }
.pg-out { font-weight: 600; min-height: 1.2em; margin: .6rem 0 0; }
.pg-err { color: var(--ox, #8a2a1a); font-weight: 600; margin: .4rem 0; padding-left: 1.2rem; }
.pg-note { color: var(--amber-text); margin: .4rem 0; padding-left: 1.2rem; }
.pg-box { background: var(--paper-2); border-radius: 14px; padding: 1rem 1.2rem; margin-top: 1.2rem; }
.pg-box h2 { margin-top: 0; }
.pg-price { font-size: 1.9rem; font-weight: 800; line-height: 1.1; margin: .2rem 0 .4rem; }
.pg-price small { font-size: .95rem; color: var(--muted); font-weight: 600; }
.pg-key { display: flex; gap: .5rem; flex-wrap: wrap; }
.pg-key input { flex: 1 1 16rem; }
.pg-cover { max-width: 22rem; margin: 0 auto; box-shadow: var(--shadow); border-radius: 4px; overflow: hidden; }
.pg-cover svg { display: block; width: 100%; height: auto; }
.pg-cap { text-align: center; color: var(--muted); font-size: .9rem; margin: .5rem 0 0; }
.pg-real { margin-top: 1rem; display: grid; gap: 1rem; }
.pg-sheet { background: #fff; color: #111; border: 1px solid var(--rule); box-shadow: var(--shadow-sm); padding: 1rem; border-radius: 4px; }
.pg-sheet h3 { margin: 0 0 .5rem; color: #1F3D2F; }
.pg-kick { margin: 0; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: #8a5a12; font-weight: 700; }
.pg-ws { font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 700; display: grid; gap: 0; border: 2px solid #1F3D2F; border-radius: 6px; padding: .3rem; }
.pg-ws div { display: flex; justify-content: space-between; }
.pg-ws span { flex: 1; text-align: center; font-size: clamp(.7rem, 2.4vw, 1rem); line-height: 1.5; }
.pg-words { font-size: .9rem; margin: .5rem 0 0; }
.pg-xw svg { display: block; width: 100%; max-height: 22rem; height: auto; }
.pg-cl { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; font-size: .85rem; }
.pg-cl ul { padding-left: 0; list-style: none; margin: .3rem 0 0; }
.pg-gallery { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); }
.pg-gallery figure { margin: 0; }
.pg-gallery img { width: 100%; height: auto; border: 1px solid var(--rule); border-radius: 4px; box-shadow: var(--shadow-sm); display: block; }
.pg-gallery figcaption { font-size: .85rem; color: var(--muted); margin-top: .3rem; text-align: center; }
.pg-hero-img { width: 100%; height: auto; max-width: 34rem; display: block; margin: 0 auto; border-radius: 6px; }
.pg-wrap [hidden], .pg-side[hidden], .pg-real[hidden] { display: none !important; }
