#wdl-grid {
  display: grid;
  gap: 6px;
  max-width: 250px;
  margin: 0 auto;
}

#wdl-grid .cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-size: 1.5rem;
  font-weight: bold;
  text-transform: uppercase;
  background-color: #6c757d;
  border: 1px solid #adb5bd;
}

#wdl-grid .cell.correct {
  background-color: #198754 !important;
}

#wdl-grid .cell.present {
  background-color: #ffc107 !important;
  color: #000;
}

#wdl-grid .cell.absent {
  background-color: #343a40 !important;
  border-color: #6c757d !important;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

#wdl-grid.shake {
  animation: shake 0.5s;
}

.win-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
}

.win-box {
  background: #212529;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  color: #fff;
}

.win-box h2 {
  color: #198754;
  margin-bottom: 1rem;
}

.win-box button {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background: #198754;
  border: none;
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
}
