/* ============================================================
   GRILLE DE JEU
   ============================================================ */
.grid-wrapper {
  background: var(--cream-soft);
  border: 2px solid var(--ink);
  border-radius: 4px;
  padding: 0.6rem;
  box-shadow: 6px 6px 0 var(--clay-deep);
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  flex: 1;
  min-height: 0;
}

.cell {
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 3px;
  padding: 0.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: clamp(0.75rem, 2vw, 0.95rem);
  line-height: 1.15;
  color: var(--ink);
  transition: transform 0.12s ease, background 0.3s ease, color 0.3s ease;
  position: relative;
  user-select: none;
  overflow: hidden;
  min-height: 0;
}

.cell:hover:not(.correct):not(.wrong):not(.disabled) {
  transform: translate(-2px, -2px);
  box-shadow: 3px 3px 0 var(--clay-deep);
  background: var(--line-white);
}

.cell:active:not(.correct):not(.wrong):not(.disabled) {
  transform: translate(0, 0);
  box-shadow: none;
}

.cell.correct {
  background: var(--grass);
  color: var(--line-white);
  border-color: var(--ink);
  cursor: default;
  animation: correct-pop 0.4s ease;
}

.cell.correct::after {
  content: '✓';
  position: absolute;
  top: 4px;
  right: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--grass-bright);
}

.cell.wrong {
  background: var(--clay-deep);
  color: var(--line-white);
  animation: shake 0.4s ease;
}

.cell.line-clear {
  animation: line-clear 0.6s ease forwards;
}

.cell.fade-in {
  animation: fade-in 0.5s ease;
}