.anagramme-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  max-width: 640px;
  margin: 0 auto;
}

.anagramme-theme {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
}
.anagramme-theme strong { color: var(--text); }

.answer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  min-height: 56px;
}
.answer-slot {
  width: 46px;
  height: 52px;
  border: 2px solid var(--border-strong);
  border-radius: 8px;
  background: var(--cell-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
}
.answer-slot.filled {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, var(--cell-bg));
}

.tiles-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.letter-tile {
  width: 46px;
  height: 52px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--bg-elevated);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  transition: transform 0.1s, background 0.15s;
}
.letter-tile:hover:not(:disabled) { border-color: var(--accent); transform: translateY(-2px); }
.letter-tile:disabled { opacity: 0.25; cursor: default; }

.anagramme-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.anagramme-feedback {
  min-height: 1.4em;
  font-weight: 600;
  text-align: center;
}
.anagramme-feedback.correct { color: var(--success); }
.anagramme-feedback.wrong { color: var(--danger); }

.anagramme-hint {
  color: var(--text-muted);
  font-size: 0.88rem;
  min-height: 1.2em;
  text-align: center;
}
