body {
  margin: 0;
  padding: 20px;
  font-family: system-ui, -apple-system, sans-serif;
  background: linear-gradient(#fff0f5, #ffe4e1);
  text-align: center;
}

h1 {
  margin-bottom: 8px;
}

#counter {
  margin-bottom: 16px;
  font-size: 1rem;
  opacity: 0.8;
}

#grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  max-width: 360px;
  margin: 0 auto;
  touch-action: none;
}

.cell {
  aspect-ratio: 1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 600;
  user-select: none;
  transition: background 0.2s, color 0.2s;
}

/* Drag highlight */
.cell.active {
  background: #ffd1dc;
}

/* Found words */
.cell.locked-regular {
  background: #ccc;
  color: #333;
}

.cell.locked-special {
  background: #ff4d88;
  color: white;
}

/* Final card */
#final {
  margin-top: 30px;
}

.final-card {
  background: white;
  padding: 24px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.final-card h2 {
  margin-bottom: 20px;
}

.buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
}

button {
  font-size: 1rem;
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
}

#yesBtn {
  background: #ff4d88;
  color: white;
}

#noBtn {
  background: #ddd;
}

/* Sad screen */
#sad-screen {
  position: fixed;
  inset: 0;
  background: black;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sad-content {
  text-align: center;
}

.sad-content .emoji {
  font-size: 4rem;
  margin-bottom: 12px;
}

#happyBtn {
  margin-top: 16px;
  background: #ff4d88;
  color: white;
}

/* Utility */
.hidden {
  display: none !important;
}
