body {
  font-family: "Comic Neue", "Poppins", sans-serif;
  text-align: center;
  background: linear-gradient(135deg, #a2d2ff, #caffbf, #ffc6ff);
  background-size: 400% 400%;
  animation: gradientBG 12s ease infinite;
  padding: 20px;
  margin: 0;
}

@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

h1 {
  color: #333;
  font-size: 2rem;
  margin-bottom: 15px;
}

#game-container {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Timer + Word list side by side */
#top-panel {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 30px;
  margin-bottom: 20px;
}

#word-list {
  list-style: none;
  padding: 15px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  font-size: 16px;
  text-align: left;
}

#word-list li {
  margin: 5px 0;
  font-weight: bold;
  color: #444;
}

#word-list li.found {
  text-decoration: line-through;
  color: green;
}

#timer {
  padding: 15px 20px;
  font-size: 20px;
  font-weight: bold;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  color: #ff4d6d;
}

.grid {
  display: grid;
  grid-template-columns: repeat(15, 32px);
  grid-template-rows: repeat(15, 32px);
  gap: 4px;
  justify-content: center;
  margin-bottom: 20px;
}

.cell {
  width: 32px;
  height: 32px;
  background: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  font-weight: bold;
  color: #333;
  transition: transform 0.2s, background 0.3s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cell:hover {
  transform: scale(1.1);
  background: #ffeb99;
}

.cell.highlight {
  background: #ffeb3b;
}

.cell.found {
  background: lightgreen;
  color: #000;
}

#message {
  margin-top: 15px;
  font-size: 20px;
  font-weight: bold;
  color: #333;
}
