@charset "UTF-8";
.strip[data-id=d224c2] {
  --section-id: "d224c2";
  --storage-url: "https://ach.proweb.cz/_section/d224c2";
  --public-url: "https://ach.proweb.cz/_section/d224c2";
}
.strip[data-id=d224c2] .puzzle-game {
  padding: 60px 20px;
  background-color: #ffffff;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  /* Zamezení označování textu napříč prohlížeči */
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
.strip[data-id=d224c2] .puzzle-game .container {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.strip[data-id=d224c2] .puzzle-game .win-banner {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  background: #f0fff4;
  border: 2px solid #c6f6d5;
  border-radius: 20px;
  margin: 0 auto 20px;
  max-width: 600px;
}
.strip[data-id=d224c2] .puzzle-game .win-banner.visible {
  max-height: 200px;
  opacity: 1;
  padding: 20px;
  margin-bottom: 30px;
}
.strip[data-id=d224c2] .puzzle-game .win-banner h3 {
  color: #2f855a;
  font-size: 1.8rem;
  margin-bottom: 5px;
}
.strip[data-id=d224c2] .puzzle-game .win-banner .btn-success {
  background: #48bb78;
  color: white;
  border: none;
  padding: 10px 25px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}
.strip[data-id=d224c2] .puzzle-game .puzzle-controls {
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
  gap: 15px;
  align-items: center;
}
.strip[data-id=d224c2] .puzzle-game .puzzle-controls select {
  padding: 10px 20px;
  border-radius: 10px;
  border: 2px solid #cbd5e0;
  font-weight: 600;
}
.strip[data-id=d224c2] .puzzle-game .puzzle-controls .btn-primary {
  background: #4299e1;
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}
.strip[data-id=d224c2] .puzzle-game .puzzle-main-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  position: relative;
}
.strip[data-id=d224c2] .puzzle-game .puzzle-preview-mini {
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  background: white;
  padding: 8px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.2s;
  z-index: 100;
}
.strip[data-id=d224c2] .puzzle-game .puzzle-preview-mini:hover {
  transform: scale(1.05);
}
.strip[data-id=d224c2] .puzzle-game .puzzle-preview-mini img {
  width: 100%;
  border-radius: 8px;
  display: block;
}
.strip[data-id=d224c2] .puzzle-game .puzzle-preview-mini span {
  font-size: 0.7rem;
  font-weight: 800;
  color: #4a5568;
  display: block;
  margin-top: 4px;
}
.strip[data-id=d224c2] .puzzle-game .board-outer {
  padding: 12px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
  display: inline-block;
}
.strip[data-id=d224c2] .puzzle-game .puzzle-board {
  display: grid;
  width: 480px;
  height: 480px;
  background: #2d3748;
  position: relative;
  gap: 0;
  touch-action: none; /* Důležité pro mobilní drag */
}
.strip[data-id=d224c2] .puzzle-game .slot {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: visible;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 15px 15px;
}
.strip[data-id=d224c2] .puzzle-game .slot.drag-over {
  background-color: rgba(66, 153, 225, 0.2);
}
.strip[data-id=d224c2] .puzzle-game .puzzle-pool {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  background: #f8fafc;
  padding: 35px;
  border-radius: 20px;
  border: 3px dashed #cbd5e0;
  min-height: 150px;
  justify-content: center;
  touch-action: none; /* Důležité pro mobilní drag */
}
.strip[data-id=d224c2] .puzzle-game .puzzle-pool .piece-wrapper {
  width: 70px;
  height: 70px;
  position: relative;
  overflow: visible;
}
.strip[data-id=d224c2] .puzzle-game .puzzle-pool .piece-wrapper.drag-over {
  background-color: rgba(66, 153, 225, 0.1);
  border-radius: 8px;
}
.strip[data-id=d224c2] .puzzle-game .puzzle-piece {
  position: absolute;
  width: 160%;
  height: 160%;
  top: -30%;
  left: -30%;
  cursor: grab;
  z-index: 10;
  background-repeat: no-repeat;
  transition: filter 0.3s, transform 0.2s;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.25));
  touch-action: none; /* Zamezí scrollu při tahu za dílek */
  -webkit-user-select: none;
  user-select: none;
}
.strip[data-id=d224c2] .puzzle-game .puzzle-piece:active {
  cursor: grabbing;
}
.strip[data-id=d224c2] .puzzle-game .puzzle-piece.is-dragging {
  z-index: 9999 !important;
  opacity: 1 !important;
  pointer-events: none; /* Umožní detekci slotu pod dílkem */
  position: fixed !important;
  transition: none !important;
  transform: scale(1) !important;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
}
.strip[data-id=d224c2] .puzzle-game .puzzle-piece.selected {
  z-index: 200;
  transform: scale(1.2);
  filter: brightness(1.1) drop-shadow(0 15px 30px rgba(0, 0, 0, 0.3)) drop-shadow(0 0 10px rgba(66, 153, 225, 0.5));
}
.strip[data-id=d224c2] .puzzle-game .preview-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: none;
  place-items: center;
  z-index: 3000;
  cursor: zoom-out;
}
.strip[data-id=d224c2] .puzzle-game .preview-modal.visible {
  display: grid;
}
.strip[data-id=d224c2] .puzzle-game .preview-modal img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 15px;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}