/* ================================================================
   PUZZLE PRZESUWNE
================================================================ */
.pz-tile {
  width: 94px; height: 94px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: clamp(18px, 3vw, 28px);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  user-select: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  position: relative;
  flex-direction: column;
  gap: 2px;
  text-align: center;
  line-height: 1.1;
}
.pz-tile:hover { transform: scale(1.04); box-shadow: 0 4px 18px rgba(0,0,0,0.5); }
.pz-tile.empty {
  background: rgba(255,255,255,0.02) !important;
  border: 2px dashed rgba(255,255,255,0.1) !important;
  cursor: default;
  box-shadow: none !important;
}
.pz-tile.empty:hover { transform: none; }
.pz-tile.correct-flash { animation: correctFlash 0.4s ease; }
@keyframes correctFlash { 0%,100%{filter:brightness(1)} 50%{filter:brightness(1.6)} }

.pz-preview-tile {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
}

/* ================================================================
   PUZZLE
================================================================ */
#page-puzzle .container { max-width: 860px; }

#page-puzzle::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    /* siatka kafelków puzzli */
    /* subtelny akcent zielony w rogu */
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(26,122,58,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 20% 20%, rgba(26,122,58,0.08) 0%, transparent 60%);
}

/* Losowe kafelki puzzle jako dekoracja tła */
#page-puzzle .pz-bg-tiles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.pz-layout {
  display: flex;
  gap: 32px;
  width: 100%;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
}

/* Preview herb */
.pz-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  width: 135px;
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  overflow: hidden;
  opacity: 0.9;
}

.pz-club-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  letter-spacing: 5px;
  color: var(--gold);
  text-align: center;
  min-height: 36px;
}
.pz-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  width: 300px;
  height: 300px;
}
.pz-cell {
  width: 96px;
  height: 96px;
  border-radius: 8px;
  border: 2px dashed rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  transition: all 0.2s;
  cursor: pointer;
  position: relative;
}
.pz-cell.has-piece {
  border-style: solid;
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.07);
}
.pz-cell.correct-pos {
  border-color: #2ecc71;
  background: rgba(46,204,113,0.12);
}
.pz-cell.selected-cell {
  border-color: var(--gold);
  background: rgba(245,200,66,0.15);
  box-shadow: 0 0 16px rgba(245,200,66,0.4);
}
.pz-cell.drop-target {
  border-color: var(--gold);
  background: rgba(245,200,66,0.1);
  transform: scale(1.05);
}

.pz-tray {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 340px;
  min-height: 110px;
  padding: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
}
.pz-piece {
  width: 90px;
  height: 90px;
  border-radius: 8px;
  border: 2px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  cursor: grab;
  transition: all 0.2s;
  user-select: none;
  position: relative;
}
.pz-piece:hover { transform: scale(1.08); border-color: var(--gold); }
.pz-piece:active { cursor: grabbing; transform: scale(0.96); }
.pz-piece.selected-piece { border-color: var(--gold); box-shadow: 0 0 16px rgba(245,200,66,0.5); transform: scale(1.08); }
.pz-piece.dragging { opacity: 0.4; }

.pz-feedback {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
  min-height: 22px;
  opacity: 0;
  transition: opacity 0.3s;
}
.pz-feedback.show { opacity: 1; }
.pz-feedback.correct { color: #2ecc71; }
.pz-feedback.wrong { color: var(--red); }

.pz-timer {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 36px;
  color: var(--gold);
  letter-spacing: 4px;
}
.pz-timer.warning { color: var(--red); animation: pulse 0.5s ease infinite alternate; }
.page-footer {
  margin-top: 32px;
  padding-bottom: 20px;
  text-align: center;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(240,244,239,0.2);
  line-height: 1.8;
}
/* © Jakub / pilkarskiegierki / Buzia07 / 2026 — SmFrdWJ8cGlsa2Fyc2tpZWdpZXJraXxCdXppYTA3fDIwMjY= ​‌‌‌​‌‌‌​‌‌​‌‌​​​‌‌​​​​‌​‌‌‌​​‌‌​‌‌​‌‌‌​​‌‌​‌‌‌‌​‌‌‌​​‌‌​‌‌​​​‌‌​​‌‌‌​‌​​​‌​​​​​​‌‌‌​​​​​‌‌​‌​​‌​‌‌​‌‌​​​‌‌​‌​‌‌​‌‌​​​​‌​‌‌‌​​‌​​‌‌‌​​‌‌​‌‌​‌​‌‌​‌‌​‌​​‌​‌‌​​‌​‌​‌‌​​‌‌‌​‌‌​‌​​‌​‌‌​​‌​‌​‌‌‌​​‌​​‌‌​‌​‌‌​‌‌​‌​​‌​​‌​‌‌‌​​‌‌‌​​​​​‌‌​‌‌​​​​‌​​​​​​‌‌‌‌‌​​​​‌​​​​​​‌​​‌​‌​​‌‌​​​​‌​‌‌​‌​‌‌​‌‌‌​‌​‌​‌‌​​​‌​​​‌​​​​​​‌​​​​‌​​​‌​​​​​​‌‌‌‌‌​​​​‌​​​​​​​‌‌​​‌​​​‌‌​‌‌​​​‌​‌‌‌​​​‌‌​​​​​​‌‌​‌​​​​‌​‌‌‌​​​‌‌​​‌​​​‌‌​​​​​​‌‌​​​​​​‌‌​​​‌*/
body::after {
  content: '';
  display: none;
  /* wm:SmFrdWJ8cGlsa2Fyc2tpZWdpZXJraXxCdXppYTA3fDIwMjY= */
}

.pz-solved-badge.show { display: block; }

 to { opacity:1; transform: translateX(-50%) translateY(0); } }

 }

