@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;700&display=swap');

body {
  background: linear-gradient(135deg, #fff6e6 0%, #ffe0ec 100%);
  color: #7a4e4e;
  font-family: 'Quicksand', Arial, sans-serif;
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
}

main {
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 0.5vw 0 0.5vw 0;
  transition: opacity 0.7s;
  overflow: hidden;
}

.tag {
  background: rgba(255, 240, 230, 0.85);
  border-radius: 24px;
  box-shadow: 0 4px 32px #ffd6e0aa;
  padding: 1.2rem 1.2rem 0.8rem 1.2rem;
  margin-bottom: 1.2rem;
  text-align: center;
  max-width: 90vw;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #e07a8c;
  margin: 0 0 0.5rem 0;
  letter-spacing: 1px;
}

.tag p {
  font-size: 1.2rem;
  color: #b97a56;
  margin: 0;
  letter-spacing: 0.5px;
}

#puzzle-container {
  position: relative;
  background: transparent;
  border: 4px solid #ffd6e0;
  box-shadow: 0 8px 40px #ffd6e0aa;
  border-radius: 32px;
  margin: 0.5vw 0 0.5vw 0;
  padding: 0.5vw;
  width: 98vw;
  height: calc(100vh - 8.5rem);
  max-width: 1800px;
  min-width: 320px;
  min-height: 200px;
  max-height: 70vh;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

#puzzle-board {
  box-sizing: border-box;
  border-radius: 18px;
  background: rgba(255, 240, 230, 0.92);
  box-shadow: 0 2px 24px #e07a8c33;
  position: relative;
  margin: 0 auto;
  display: block;
  border: 4px solid #e07a8c;
  z-index: 1;
}

.puzzle-cell {
  position: absolute;
  box-sizing: border-box;
  border: 1.5px solid #e07a8c11;
  background: transparent;
  box-shadow: none;
  transition: none;
}

.puzzle-cell.highlight {
  border: none;
  box-shadow: none;
}

.piece {
  position: absolute;
  cursor: grab;
  touch-action: none;
  transition: box-shadow 0.2s, background 0.2s;
  z-index: 1;
  background: #ffe0ec;
  /* border: 2px solid #e07a8c; */
  box-sizing: border-box;
  border-radius: 12px;
  box-shadow: 0 2px 12px #ffd6e0aa;
}
.piece.dragging {
  z-index: 10;
  box-shadow: 0 0 32px #e07a8c88;
  background: #fff6e6;
}

#win-overlay {
  font-family: 'Quicksand', Arial, sans-serif;
  background: rgba(255, 240, 230, 0.95) !important;
}

#win-overlay div {
  color: #e07a8c !important;
  font-size: 2.1rem !important;
  font-weight: 700;
  text-shadow: 0 2px 8px #ffd6e0aa;
}

@media (max-width: 600px) {
  .tag {
    padding: 0.7rem 0.3rem 0.5rem 0.3rem;
    margin-bottom: 0.7rem;
  }
  #puzzle-container {
    padding: 0.5vw;
    min-width: 0;
    max-width: 98vw;
    border-radius: 18px;
    height: calc(100vh - 5.5rem);
    max-height: 55vh;
  }
}

#reset-btn {
  padding: 10px 20px;
  font-size: 1.1em;
  border: none;
  border-radius: 5px;
  background: #444;
  color: #fff;
  cursor: pointer;
  margin-bottom: 10px;
}
#reset-btn:hover {
  background: #666;
} 