/* Puzzles landing page (puzzles.html). Builds on site.css. */

.pz-hero { padding-bottom: 2rem; }
.pz-games { padding: 1rem 0 2rem; }
.pz-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.pz-card.panel { padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.pz-body { padding: 1.5rem 1.6rem 1.7rem; display: flex; flex-direction: column; flex: 1; }
.pz-body h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); margin: 0 0 .6rem; }
.pz-body > p { color: #c6d6db; margin: 0 0 1rem; }
.pz-body .btn-row { margin-top: auto; }
.pz-chips { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; padding: 0; margin: 0 0 1.4rem; }
.pz-chips li { font-family: var(--pixel); font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: var(--cyan); border: 1px solid var(--line-strong); border-radius: 2px; padding: .3rem .5rem; }
.pz-stat { margin: .9rem 0 0; color: var(--amber); font-size: .92rem; min-height: 1.3em; }

/* preview art */
.pz-wu { display: grid; grid-template-columns: repeat(4, 40px); grid-auto-rows: 40px; gap: 5px; }
.pz-wu span { position: relative; border-radius: 6px; background: linear-gradient(150deg, #e9f4f5, #d4e6e9); box-shadow: 0 3px 0 #8fb0b6; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.35rem; color: #06080f; line-height: 1; }
.pz-wu span.sel { background: linear-gradient(150deg, #fff1c4, #ffcf6b); }
.pz-wu span.irr { background: linear-gradient(150deg, #e3ffd2, #b9f59a); color: #12470a; box-shadow: 0 3px 0 #5e9b45, 0 0 14px rgba(120,255,90,.55); }
.pz-wu span.melt { background: radial-gradient(circle at 35% 30%, #ffe0a8, #ffb054 45%, #c2410c); color: #2a0b00; box-shadow: 0 3px 0 #7a2a06, 0 0 16px rgba(255,140,40,.6); }
.pz-wu span.hole { background: transparent; box-shadow: none; overflow: visible; }
.pz-wu span.hole .blackhole { position: absolute; --w: 120px; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.pz-art { display: flex; align-items: center; justify-content: center; height: 230px; background: radial-gradient(ellipse at 50% 60%, rgba(160,225,225,.12), transparent 65%), rgba(4,6,12,.7); border-bottom: 1px solid var(--line); text-decoration: none; overflow: hidden; }
.pz-art > div { transition: transform .35s ease; }
.pz-card:hover .pz-art > div { transform: scale(1.05) rotate(-1deg); }

.pz-cw { display: grid; grid-template-columns: repeat(5, 34px); grid-auto-rows: 34px; gap: 2px; }
.pz-cw span { position: relative; border-radius: 2px; }
.pz-cw span.l { background: #e9f4f5; color: #b3126b; font-weight: 800; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; padding-top: 4px; }
.pz-cw i { position: absolute; top: 1px; left: 2px; font-style: normal; font-size: 9px; font-weight: 700; color: #5d6b72; }

.pz-mj { position: relative; width: calc(5 * 40px + 12px); height: calc(2 * 52px + 12px); }
.pz-mj span {
  --z: 0; position: absolute; width: 38px; height: 50px; left: calc(var(--x) * 40px + (2 - var(--z)) * 4px); top: calc(var(--y) * 52px + (2 - var(--z)) * 4px);
  border-radius: 4px; background: linear-gradient(150deg, #f4fafb, #d9e8ea); border: 1px solid #c4d6d9;
  box-shadow: 2px 2px 0 #a9c3c8, 4px 4px 0 #55707a, 6px 9px 10px rgba(0,0,0,.55);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.5rem; color: #06080f; line-height: 1; padding-top: 3px;
}
.pz-mj span.v { color: #b3126b; }
.pz-mj span.pic { background: #0b1218; padding: 2px; }
.pz-mj span.pic img { width: 100%; height: 100%; object-fit: cover; border-radius: 2px; }

.pz-cta { padding-top: 3rem; }
.pz-covers { display: flex; justify-content: center; gap: .8rem; flex-wrap: wrap; margin: 0 0 1.8rem; }
.pz-covers a { width: 74px; transition: transform .2s; }
.pz-covers a:hover { transform: translateY(-4px); }
.pz-covers img { width: 100%; border-radius: 3px; box-shadow: 0 10px 24px -8px rgba(0,0,0,.9); }

@media (min-width: 1101px) {
  .pz-body .btn-row { flex-direction: column; align-items: stretch; }
  .pz-body .btn-row .btn { justify-content: center; text-align: center; }
}
@media (max-width: 1100px) {
  .pz-grid { grid-template-columns: 1fr 1fr; }
  .pz-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .pz-grid { grid-template-columns: 1fr; }
  .pz-art { height: 200px; }
}
@media (max-width: 480px) {
  .pz-body { padding: 1.2rem 1.1rem 1.3rem; }
  .pz-covers a { width: 56px; }
}
