/* Photo Puzzles (/puzzles) and the Puzzle Studio (/puzzles/studio). Every class starts with pz- or pzh-. */

.pz-page { padding-bottom: 48px; }
.pz-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; letter-spacing: .02em; color: var(--c-purple); background: color-mix(in srgb, var(--c-purple) 10%, #fff); }
.pz-link { padding: 0; border: 0; font: inherit; font-weight: 600; color: var(--c-blue); background: none; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- Animated header ---------- */
.pzh { position: relative; overflow: hidden; padding: 18px 0 34px; background:
    radial-gradient(60% 80% at 85% 20%, #ffe1f0 0%, transparent 60%),
    radial-gradient(50% 70% at 10% 90%, #dff4ff 0%, transparent 60%),
    linear-gradient(135deg, #fff7ec 0%, #f4efff 55%, #eafff5 100%); }
.pzh-in { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: center; }
.pzh-copy .breadcrumb { padding-bottom: 10px; }
.pzh h1 { margin: 14px 0 12px; font-size: clamp(30px, 4.4vw, 54px); line-height: 1.07; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.pzh-rainbow { background: linear-gradient(90deg, #ef4136, #f7931e, #e2b100, #22b573, #1c9ad6, #7b3fa0, #ef4136); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: pzh-flow 6s linear infinite; }
@keyframes pzh-flow { to { background-position: -200% 0; } }
.pzh-sub { max-width: 560px; font-size: 16.5px; line-height: 1.6; color: var(--text); }
.pzh-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 18px; }
.pzh-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.pzh-chips li { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink); background: rgba(255, 255, 255, .8); box-shadow: var(--shadow-sm); }
.pzh-chips li i { color: var(--c-purple); }
.pzh-chips .is-price { color: #fff; background: var(--red); }
.pzh-chips .is-price b { font-weight: 800; }
.pzh-art { position: relative; }
.pzh-canvas { display: block; width: 100%; aspect-ratio: 5 / 5.4; max-height: 560px; }
.pzh-badge { position: absolute; right: 6%; bottom: 8%; display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--ink); background: #fff; box-shadow: var(--shadow); animation: pzh-bob 3.4s var(--ease) infinite; }
.pzh-badge i { color: var(--c-teal); }
@keyframes pzh-bob { 50% { transform: translateY(-6px); } }
/* Floating pieces in the background */
.pzh-bits i { position: absolute; font-size: calc(22px + var(--n) * 3px); color: var(--c); opacity: .22; left: calc(4% + var(--n) * 12%); top: calc(8% + (var(--n) * 37 % 80) * 1%); animation: pzh-float calc(9s + var(--n) * 1.3s) ease-in-out infinite; animation-delay: calc(var(--n) * -1.7s); }
@keyframes pzh-float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-26px) rotate(25deg); } }

/* ---------- Landing sections ---------- */
.pz-how { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 26px 0 8px; padding: 0; list-style: none; counter-reset: pzstep; }
.pz-how li { position: relative; display: grid; gap: 4px; padding: 18px 18px 16px; border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-sm); counter-increment: pzstep; }
.pz-how li::after { content: counter(pzstep); position: absolute; top: 12px; right: 16px; font-size: 30px; font-weight: 800; color: var(--tone); opacity: .14; }
.pz-how i { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 6px; border-radius: 12px; font-size: 18px; color: var(--tone); background: color-mix(in srgb, var(--tone) 12%, #fff); }
.pz-how strong { font-size: 15.5px; color: var(--ink); }
.pz-how span { font-size: 13.5px; color: var(--muted); }
.pz-page .tone-1 { --tone: var(--c-pink); } .pz-page .tone-2 { --tone: var(--c-orange); } .pz-page .tone-3 { --tone: var(--c-teal); } .pz-page .tone-4 { --tone: var(--c-purple); }

.pz-sec { margin-top: 38px; }
.pz-sec h2 { margin: 0 0 14px; font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; color: var(--ink); }
.pz-sec-head p { margin: -8px 0 16px; color: var(--muted); }
.pz-size-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; }
.pz-size-card { display: grid; justify-items: center; gap: 4px; padding: 16px 12px 14px; border-radius: var(--radius); text-align: center; text-decoration: none; color: var(--ink); background: #fff; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.pz-size-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.pz-size-card small { font-size: 12px; color: var(--muted); }
.pz-size-card b { font-size: 17px; font-weight: 800; color: var(--red); }
.pz-size-shape { display: block; width: calc(26px + var(--sw) * 30px); height: calc(26px + var(--sh) * 30px); margin-bottom: 4px; border-radius: 5px; background: linear-gradient(135deg, #ffd1dc, #bfe3ff 55%, #c9f5dc); box-shadow: inset 0 0 0 2px rgba(255,255,255,.9), 0 3px 8px rgba(17,19,24,.12); }

.pz-themes { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.pz-themes button { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--text); background: #fff; cursor: pointer; transition: all .15s var(--ease); }
.pz-themes button:hover { border-color: var(--c-purple); color: var(--c-purple); }
.pz-themes button.is-on { border-color: var(--c-purple); color: #fff; background: var(--c-purple); }
.pz-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.pz-card { display: grid; overflow: hidden; border-radius: var(--radius-lg); text-decoration: none; color: var(--ink); background: #fff; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease); animation: pz-rise .5s var(--ease) both; animation-delay: calc(var(--n) * 50ms); }
.pz-card[hidden] { display: none; }
.pz-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pz-card-img { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--line-soft); }
.pz-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.pz-card:hover .pz-card-img img { transform: scale(1.05); }
.pz-card-body { display: grid; gap: 2px; padding: 12px 14px 4px; }
.pz-card-body small { color: var(--muted); }
.pz-card-go { padding: 4px 14px 14px; font-size: 13px; font-weight: 700; color: var(--red); }
@keyframes pz-rise { from { opacity: 0; transform: translateY(12px); } }
.pz-soon { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 22px; border-radius: var(--radius-lg); background: linear-gradient(120deg, #fff4e6, #f3edff); }
.pz-soon > i { font-size: 30px; color: var(--c-purple); }
.pz-soon div { flex: 1; display: grid; gap: 2px; min-width: 220px; }
.pz-soon span { color: var(--muted); }

.pz-why ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 0; margin: 0; list-style: none; }
.pz-why li { display: grid; gap: 4px; padding: 18px; border-radius: var(--radius-lg); background: color-mix(in srgb, var(--tone) 7%, #fff); }
.pz-why i { font-size: 22px; color: var(--tone); }
.pz-why strong { color: var(--ink); }
.pz-why span { font-size: 13.5px; color: var(--muted); }
.pz-faq details { border-bottom: 1px solid var(--line); background: #fff; }
.pz-faq details:first-of-type { border-radius: var(--radius) var(--radius) 0 0; }
.pz-faq details:last-of-type { border-radius: 0 0 var(--radius) var(--radius); border-bottom: 0; }
.pz-faq summary { padding: 15px 18px; font-weight: 600; color: var(--ink); cursor: pointer; }
.pz-faq p { padding: 0 18px 16px; margin: 0; color: var(--text); line-height: 1.6; }
.pz-final { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; margin-top: 34px; padding: 26px; border-radius: var(--radius-xl); text-align: center; background: linear-gradient(120deg, #ffe9ee, #eef4ff 50%, #eafff4); }
.pz-final strong { font-size: 20px; color: var(--ink); }


/* ---------- The studio ---------- */
.pz-note { display: flex; gap: 10px; padding: 14px 16px; border-radius: var(--radius); background: #fff7e6; color: var(--text); }
.pz-shead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.pz-shead h1 { margin: 10px 0 0; font-size: clamp(24px, 3vw, 34px); font-weight: 800; color: var(--ink); }
.pz-steps { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; list-style: none; }
.pz-steps li { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 6px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted); background: #fff; box-shadow: var(--shadow-sm); transition: all .25s var(--ease); }
.pz-steps span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 12px; color: var(--muted); background: var(--line-soft); }
.pz-steps .is-done span { color: #fff; background: var(--c-green); }
.pz-steps .is-now { color: var(--ink); box-shadow: 0 0 0 2px var(--c-purple); }
.pz-steps .is-now span { color: #fff; background: var(--c-purple); }

.pz-work { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
.pz-stage-wrap { position: sticky; top: 90px; }
.pz-views { display: flex; gap: 6px; margin-bottom: 10px; padding: 5px; border-radius: 14px; background: #fff; box-shadow: var(--shadow-sm); }
.pz-views button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 8px; border: 0; border-radius: 10px; font: inherit; font-size: 14px; font-weight: 600; color: var(--muted); background: transparent; cursor: pointer; transition: all .2s var(--ease); }
.pz-views button:hover:not(:disabled) { color: var(--ink); background: var(--line-soft); }
.pz-views button.is-on { color: #fff; background: linear-gradient(135deg, var(--c-purple), var(--c-pink)); box-shadow: 0 6px 14px -6px color-mix(in srgb, var(--c-purple) 70%, transparent); }
.pz-views button:disabled { opacity: .45; cursor: not-allowed; }
.pz-short { display: none; }
.pz-stage { position: relative; height: clamp(360px, calc(100vh - 250px), 680px); overflow: hidden; border-radius: var(--radius-lg); background:
    linear-gradient(45deg, #f1f2f6 25%, transparent 25%, transparent 75%, #f1f2f6 75%) 0 0 / 28px 28px,
    linear-gradient(45deg, #f1f2f6 25%, transparent 25%, transparent 75%, #f1f2f6 75%) 14px 14px / 28px 28px, #fafbfd;
    box-shadow: inset 0 0 0 1px var(--line); touch-action: none; user-select: none; }
.pz-stage canvas { display: block; }
.pz-stage.is-over { box-shadow: inset 0 0 0 3px var(--c-purple); }
.pz-stage.is-click { animation: pz-click .35s var(--ease); }
@keyframes pz-click { 40% { box-shadow: inset 0 0 0 3px var(--c-green); } }

.pz-drop { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 6px; width: min(86%, 380px); padding: 26px 20px; border: 2px dashed color-mix(in srgb, var(--c-purple) 45%, transparent); border-radius: var(--radius-lg); text-align: center; background: rgba(255, 255, 255, .92); backdrop-filter: blur(4px); cursor: pointer; transition: transform .2s var(--ease), border-color .2s var(--ease); }
.pz-drop[hidden] { display: none; }
.pz-drop:hover { transform: translate(-50%, -52%); border-color: var(--c-purple); }
.pz-drop strong { font-size: 18px; color: var(--ink); }
.pz-drop > span { font-size: 13.5px; color: var(--muted); }
.pz-drop-art { display: flex; gap: 4px; margin-bottom: 4px; }
.pz-drop-art i { font-size: 26px; animation: pz-wiggle 2.4s ease-in-out infinite; }
.pz-drop-art i:nth-child(1) { color: #ef4136; } .pz-drop-art i:nth-child(2) { color: #fcc419; animation-delay: -.8s; } .pz-drop-art i:nth-child(3) { color: #1c9ad6; animation-delay: -1.6s; }
@keyframes pz-wiggle { 50% { transform: translateY(-5px) rotate(12deg); } }

.pz-tools, .pz-play { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 999px; white-space: nowrap; background: rgba(255, 255, 255, .95); box-shadow: var(--shadow); }
.pz-tools[hidden], .pz-play[hidden] { display: none; }
.pz-tools input { width: 130px; accent-color: var(--c-purple); }
.pz-tools-hint { font-size: 12px; color: var(--muted); }
.pz-tool { display: inline-grid; place-items: center; min-width: 32px; height: 32px; padding: 0 8px; border: 0; border-radius: 999px; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink); background: var(--line-soft); cursor: pointer; }
.pz-tool:hover, .pz-tool.is-on { color: #fff; background: var(--c-purple); }
.pz-tool.is-wide { display: inline-flex; gap: 6px; }
.pz-play-stat { display: inline-flex; align-items: center; gap: 6px; padding: 0 6px; font-size: 13.5px; color: var(--muted); }
.pz-play-stat b { color: var(--ink); font-variant-numeric: tabular-nums; }
.pz-solved { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 8px; width: min(88%, 360px); padding: 24px; border-radius: var(--radius-lg); text-align: center; background: #fff; box-shadow: 0 30px 60px -20px rgba(15, 23, 42, .45); animation: pz-pop .45s var(--ease); }
.pz-solved[hidden] { display: none; }
.pz-solved strong { font-size: 22px; color: var(--ink); }
.pz-solved strong i { color: #f5b301; }
.pz-solved span { color: var(--muted); }
@keyframes pz-pop { from { opacity: 0; transform: translate(-50%, -40%) scale(.92); } }
.pz-busy { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; font-weight: 600; color: var(--ink); background: rgba(255, 255, 255, .82); backdrop-filter: blur(3px); }
.pz-busy[hidden] { display: none; }
.pz-spin { width: 38px; height: 38px; border: 4px solid color-mix(in srgb, var(--c-purple) 20%, transparent); border-top-color: var(--c-purple); border-radius: 50%; animation: pz-turn .8s linear infinite; }
@keyframes pz-turn { to { transform: rotate(360deg); } }
.pz-quality { display: flex; gap: 8px; margin: 10px 2px 0; font-size: 13.5px; }
.pz-quality[hidden] { display: none; }
.pz-quality.is-good { color: var(--c-green); } .pz-quality.is-ok { color: var(--c-blue); } .pz-quality.is-low { color: var(--c-orange); font-weight: 600; }

.pz-panel { display: grid; gap: 12px; }
.pz-box { padding: 16px; border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-sm); }
.pz-box[hidden] { display: none; }
.pz-box h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 16px; font-weight: 700; color: var(--ink); }
.pz-box h2 > span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: 12.5px; color: #fff; background: linear-gradient(135deg, var(--c-purple), var(--c-pink)); }
.pz-box h2 small { font-weight: 500; color: var(--muted); }
.pz-box h3 { margin: 16px 0 8px; font-size: 14px; color: var(--ink); }
.pz-pic-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pz-pic-row.is-one { grid-template-columns: 1fr; }
.pz-pick { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1.5px solid var(--line); border-radius: var(--radius); font: inherit; text-align: left; background: #fff; cursor: pointer; transition: all .15s var(--ease); }
.pz-pick > i { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 10px; color: var(--c-purple); background: color-mix(in srgb, var(--c-purple) 10%, #fff); }
.pz-pick span { display: grid; min-width: 0; }
.pz-pick strong { font-size: 13.5px; color: var(--ink); }
.pz-pick small { overflow: hidden; font-size: 12px; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.pz-pick:hover, .pz-pick.is-on { border-color: var(--c-purple); }
.pz-pick.is-on { background: color-mix(in srgb, var(--c-purple) 6%, #fff); }

.pz-sizes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.pz-size { display: grid; justify-items: center; align-content: end; gap: 2px; min-height: 92px; padding: 8px 4px; border: 1.5px solid var(--line); border-radius: var(--radius); font: inherit; background: #fff; cursor: pointer; transition: all .15s var(--ease); }
.pz-size .pz-size-shape { width: calc(10px + var(--sw) * 26px); height: calc(10px + var(--sh) * 26px); margin-bottom: 3px; }
.pz-size strong { font-size: 12.5px; color: var(--ink); white-space: nowrap; }
.pz-size small { font-size: 11.5px; font-weight: 600; color: var(--red); }
.pz-size:hover:not(:disabled) { border-color: var(--c-purple); }
.pz-size:disabled { opacity: .4; cursor: not-allowed; }
.pz-size.is-on { border-color: var(--c-purple); background: color-mix(in srgb, var(--c-purple) 7%, #fff); box-shadow: 0 0 0 1px var(--c-purple); }
.pz-turn { display: flex; gap: 6px; margin-top: 10px; }
.pz-turn[hidden] { display: none; }
.pz-turn button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 8px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--text); background: #fff; cursor: pointer; }
.pz-turn button.is-on { border-color: var(--c-purple); color: var(--c-purple); background: color-mix(in srgb, var(--c-purple) 7%, #fff); }
.pz-fixed { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.pz-fixed[hidden] { display: none; }

.pz-count { margin-left: auto; padding: 3px 10px; border-radius: 999px; font-size: 13px; color: #fff; background: var(--c-teal); }
.pz-range { width: 100%; accent-color: var(--c-teal); }
.pz-range-ends { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--soft); }
.pz-piece-size { margin: 6px 0 0; font-size: 12.5px; color: var(--muted); }
.pz-levels { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pz-level { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: var(--radius); font: inherit; text-align: left; background: #fff; cursor: pointer; transition: all .15s var(--ease); }
.pz-level strong { font-size: 13.5px; color: var(--ink); }
.pz-level small { grid-column: 2; font-size: 11.5px; line-height: 1.3; color: var(--muted); }
.pz-level-bars { grid-row: span 2; display: flex; align-items: flex-end; gap: 2px; height: 18px; }
.pz-level-bars i { width: 4px; border-radius: 2px; background: var(--line); }
.pz-level-bars i:nth-child(1) { height: 6px; } .pz-level-bars i:nth-child(2) { height: 10px; } .pz-level-bars i:nth-child(3) { height: 14px; } .pz-level-bars i:nth-child(4) { height: 18px; }
.pz-level.is-easy { --lv: var(--c-green); } .pz-level.is-medium { --lv: var(--c-blue); } .pz-level.is-hard { --lv: var(--c-orange); } .pz-level.is-expert { --lv: var(--red); }
.pz-level.is-easy .pz-level-bars i:nth-child(-n+1), .pz-level.is-medium .pz-level-bars i:nth-child(-n+2),
.pz-level.is-hard .pz-level-bars i:nth-child(-n+3), .pz-level.is-expert .pz-level-bars i { background: var(--lv); }
.pz-level:hover { border-color: var(--lv); }
.pz-level.is-on { border-color: var(--lv); background: color-mix(in srgb, var(--lv) 8%, #fff); box-shadow: 0 0 0 1px var(--lv); }
.pz-meter { position: relative; height: 22px; margin-top: 12px; overflow: hidden; border-radius: 999px; background: var(--line-soft); }
.pz-meter span { display: flex; align-items: center; height: 100%; padding: 0 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; color: #fff; white-space: nowrap; background: linear-gradient(90deg, var(--c-green), #e2b100, var(--c-orange), var(--red)); background-size: 300% 100%; background-position: left; transition: width .4s var(--ease); }
.pz-recut { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 13.5px; }

.pz-buy { background: linear-gradient(160deg, #fff, #fff7f8); box-shadow: 0 0 0 1px var(--red-100), var(--shadow-sm); }
.pz-price { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.pz-price > div:first-child { display: grid; }
.pz-price small { font-size: 12px; color: var(--muted); }
.pz-price strong { font-size: 26px; font-weight: 800; line-height: 1.1; color: var(--ink); }
.pz-price em { font-size: 12px; font-style: normal; color: var(--muted); }
.pz-qty input { width: 54px; height: 38px; border: 0; font: inherit; font-weight: 700; text-align: center; -moz-appearance: textfield; }
.pz-qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.pz-qty button { width: 36px; height: 38px; border: 0; background: var(--line-soft); cursor: pointer; }
.pz-error { margin: 0 0 10px; padding: 9px 12px; border-radius: 10px; font-size: 13.5px; color: var(--red-dark); background: var(--red-50); }
.pz-error[hidden] { display: none; }
.pz-add:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
.pz-facts { display: grid; gap: 6px; margin: 14px 0 0; padding: 0; list-style: none; font-size: 12.5px; color: var(--muted); }
.pz-facts i { width: 18px; color: var(--c-teal); }

.pz-designs { width: min(920px, calc(100vw - 24px)); max-height: calc(100vh - 40px); padding: 0; border: 0; border-radius: var(--radius-lg); box-shadow: 0 40px 80px -20px rgba(15, 23, 42, .5); }
.pz-designs::backdrop { background: rgba(15, 23, 42, .5); backdrop-filter: blur(3px); }
.pz-designs-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; background: #fff; border-bottom: 1px solid var(--line); }
.pz-designs-head h2 { margin: 0; font-size: 18px; color: var(--ink); }
.pz-designs-head h2 i { color: var(--c-purple); margin-right: 6px; }
.pz-designs .pz-themes { padding: 14px 20px 0; }
.pz-designs-empty { padding: 30px 20px; color: var(--muted); text-align: center; }
.pz-design-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; padding: 0 20px 20px; }
.pz-design { display: grid; gap: 6px; padding: 6px; border: 1.5px solid var(--line); border-radius: var(--radius); font: inherit; font-size: 13px; font-weight: 600; color: var(--ink); background: #fff; cursor: pointer; transition: all .15s var(--ease); }
.pz-design[hidden] { display: none; }
.pz-design img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; }
.pz-design:hover { border-color: var(--c-purple); transform: translateY(-2px); }

@media (max-width: 1100px) {
    .pz-work { grid-template-columns: minmax(0, 1fr) 340px; }
    .pz-sizes { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .pzh-in { grid-template-columns: 1fr; }
    .pzh-art { order: -1; max-width: 440px; justify-self: center; width: 100%; }
    .pzh-canvas { aspect-ratio: 1 / 0.92; }
    .pz-how, .pz-why ul { grid-template-columns: repeat(2, 1fr); }
    .pz-work { grid-template-columns: 1fr; }
    .pz-stage-wrap { position: static; }
    .pz-stage { height: min(62vh, 520px); }
    .pz-sizes { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 560px) {
    .pz-how, .pz-why ul { grid-template-columns: 1fr; }
    .pz-sizes { grid-template-columns: repeat(2, 1fr); }
    .pz-views button { font-size: 13px; gap: 6px; }
    .pz-long, .pz-steps { display: none; }
    .pz-short { display: inline; }
    .pz-tools-hint { display: none; }
    .pz-tools input { width: 96px; }
    .pz-play { gap: 4px; padding: 5px 6px; }
    .pz-play .pz-tool.is-wide { padding: 0 9px; }
    .pz-levels { grid-template-columns: 1fr; }
    .pz-shead { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
    .pzh-rainbow, .pzh-badge, .pzh-bits i, .pz-drop-art i, .pz-card { animation: none; }
}
